public PropertyAccessor(PropertyInfo Property) { getMethodHandler = BasePropertyAccessor.GetPropertyInvoker(typeof(TargetType), Property.Name); setMethodHandler = BasePropertyAccessor.SetPropertyInvoker(typeof(TargetType), Property); }
public PropertyAccessor(string Property) { getMethodHandler = BasePropertyAccessor.GetPropertyInvoker(typeof(TargetType), Property); setMethodHandler = BasePropertyAccessor.SetPropertyInvoker(typeof(TargetType), typeof(TargetType).GetProperty(Property)); }