摘要: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;}// 阅读全文
posted @ 2012-07-20 08:10 纯粹的郭子 阅读(388) 评论(0) 推荐(0) 编辑