230426-048shopDemo(以泛型方式定义的递归方法构建树型结构数据的2种实现方法)

public static void TreeBuilder(List all, T currentParentItem, long? parentId = null, string idProperty = "Id", string parentIdProperty = "ParentId", string childrenProperty = "ChildrenCollection") { List _childrenList = new List(); if (parentId == null || parentId == 0) { _childrenList = all.Where(a => a.GetType().GetProperty(parentIdProperty)?.GetValue(a) == (object)parentId).ToList(); }
folder
230426-048shopDemo(以泛型方式定义的递归方法构建树型结构数据的2种实现方法) 预估大小:528个文件
file
_IsIncrementalBuild 41B
folder
Core.csproj.BuildWithSkipAnalyzers 文件夹
file
_IsIncrementalBuild 39B
file
Default.bmp 352KB
file
_IsIncrementalBuild 39B
folder
WebApi.csproj.BuildWithSkipAnalyzers 文件夹
file
_IsIncrementalBuild 41B
folder
Services.csproj.BuildWithSkipAnalyzers 文件夹
file
_IsIncrementalBuild 39B
file
_IsIncrementalBuild 41B
file
_IsIncrementalBuild 39B
folder
Framework.csproj.BuildWithSkipAnalyzers 文件夹
file
shopdemo.metadata.v5.2 3.05MB
file
shopdemo.projects.v6.1 35.91MB
file
shopdemo.projects.v5.2 16.82MB
file
shopdemo.metadata.v6.1 2.48MB
file
_IsIncrementalBuild 41B
file
Data.csproj.AssemblyReference.cache 321KB
file
_IsIncrementalBuild 39B
folder
Data.csproj.BuildWithSkipAnalyzers 文件夹
rar 文件大小:16.36MB