示例#1
0
 // Token: 0x06000025 RID: 37 RVA: 0x00002540 File Offset: 0x00000740
 public DefaultTypeMap(Type type)
 {
     if (type == null)
     {
         throw new ArgumentNullException("type");
     }
     this._fields    = DefaultTypeMap.GetSettableFields(type);
     this.Properties = DefaultTypeMap.GetSettableProps(type);
     this._type      = type;
 }
示例#2
0
 // Token: 0x06000027 RID: 39 RVA: 0x000025F4 File Offset: 0x000007F4
 internal static List <PropertyInfo> GetSettableProps(Type t)
 {
     return((from p in t.GetProperties(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic)
             where DefaultTypeMap.GetPropertySetter(p, t) != null
             select p).ToList <PropertyInfo>());
 }