コード例 #1
0
 public MemberValueAccessor(IEnumerable <PropertyInfo> properties)
 {
     foreach (var prop in properties)
     {
         var ma = RTHelper.GetMemberAccessor(prop);
         _accessors[prop.Name] = ma;
     }
 }
コード例 #2
0
 public static IMemberAccessor GetMemberAccessor(Type objectType, string memberName, bool readOnly = false, IObjectCache <string> memberCache = null)
 {
     return(RTHelper.GetMemberAccessor(objectType, memberName, readOnly, memberCache));
 }