示例#1
0
 public PropertyAccessor(PropertyInfo Property)
 {
     getMethodHandler = BasePropertyAccessor.GetPropertyInvoker(typeof(TargetType), Property.Name);
     setMethodHandler = BasePropertyAccessor.SetPropertyInvoker(typeof(TargetType), Property);
 }
示例#2
0
 public PropertyAccessor(string Property)
 {
     getMethodHandler = BasePropertyAccessor.GetPropertyInvoker(typeof(TargetType), Property);
     setMethodHandler = BasePropertyAccessor.SetPropertyInvoker(typeof(TargetType), typeof(TargetType).GetProperty(Property));
 }