Ejemplo n.º 1
0
 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())
     });
 }
Ejemplo n.º 2
0
 public FluentTypeMemberMethodDummy(TWrappedType wrappedMethod)
     : base(wrappedMethod)
 {
 }