摘要:
typeof 运算符也能用于公开的泛型类型。具有不止一个类型参数的类型的规范中必须有适当数量的逗号。不能重载 typeof 运算符。 is 可以检测和父类是否兼容,typeof责不能 public class Animal { } public class Giraffe : Animal { } 阅读全文
posted @ 2021-10-23 23:43
小林野夫
阅读(169)
评论(0)
推荐(0)
摘要:
以下都是反射在表达式树中的应用 对象初始化 Expression.MemberInit 反射获取成员(字段 或者属性),绑定数据,然后生成 成员表达式节点 class Animal { public string Species { get; set; } public int Age; } pub 阅读全文
posted @ 2021-10-23 18:21
小林野夫
阅读(269)
评论(0)
推荐(0)