摘要:
public static TreeNode GetNode(this TClass sourceBindObj) whrer TClass:ITreeNode<TClass>{ TreeNode node = new TreeNode(){ Text =TClass.Text, Value =TClass.Value }; foreach(souceBindObj child in node.Children.orderby(item => item.Order)) { node.Children.add(GetNode(child)); } retrun node;}// 阅读全文