10using System.Collections.Generic;
13using System.Reflection;
17 internal class DynamicMemberHandle
19 public string MemberName {
get;
private set; }
20 public Type MemberType {
get;
private set; }
31 MemberName = memberName;
32 MemberType = memberType;
33 DynamicMemberGet = dynamicMemberGet;
34 DynamicMemberSet = dynamicMemberSet;
37 public DynamicMemberHandle(PropertyInfo info) :
41 DynamicMethodHandlerFactory.CreatePropertyGetter(info),
42 DynamicMethodHandlerFactory.CreatePropertySetter(info))
44 public DynamicMemberHandle(FieldInfo info) :
48 DynamicMethodHandlerFactory.CreateFieldGetter(info),
49 DynamicMethodHandlerFactory.CreateFieldSetter(info))
delegate void DynamicMemberSetDelegate(object target, object arg)
Delegate for setting a value.
delegate object DynamicMemberGetDelegate(object target)
Delegate for getting a value.