摘要: public class UIHelper { /// /// 在Visual里找到想要的元素 /// childName可为空,不为空就按名字找 /// public static T FindChild(DependencyObject parent, string childName) where T : DependencyObject { if (parent == null) return null; T foundC... 阅读全文
posted @ 2013-06-25 17:08 li-peng 阅读(2551) 评论(0) 推荐(0)
摘要: 整理了一下表达式树的一些东西,入门足够了先从ConstantExpression开始一步一步的来吧 它表示具有常量值的表达式我们选建一个控制台应用程序 ConstantExpression _constExp = Expression.Constant("aaa",typeof(string));//一个常量 //Console.Writeline("aaa"); MethodCallExpression _methodCallexp=Expression.Call(typeof(Console).GetMethod("Writ... 阅读全文
posted @ 2013-06-25 11:35 li-peng 阅读(10644) 评论(5) 推荐(13)