public GetSetWrapper(TWrappedType instance, string propertyName) { _instance = instance; _propertyName = propertyName; GettersAndSettersByPropertyName.GetOrAdd(propertyName, (ignored) => new GetterAndSetterTuple() { Getter = (Func <TWrappedType, TProperty>)Delegate.CreateDelegate(typeof(Func <TWrappedType, TProperty>), null, typeof(TWrappedType).GetProperty(propertyName).GetGetMethod()), Setter = (Action <TWrappedType, TProperty>)Delegate.CreateDelegate(typeof(Action <TWrappedType, TProperty>), null, typeof(TWrappedType).GetProperty(propertyName).GetSetMethod()) }); }
public FluentTypeMemberMethodDummy(TWrappedType wrappedMethod) : base(wrappedMethod) { }