internal static TypePropertyInfo Create(TypeInfo parentInfo, PropertyInfo propInfo, Dictionary <Type, TypeInfo> workingTypes)
        {
            var info = new TypePropertyInfo(parentInfo, propInfo);

            info.ParseAttributes();
            info._propertyTypeInfo = TypeInfo.GetTypeInfo(info._property.PropertyType, workingTypes);
            return(info);
        }
示例#2
0
 private void ParseProperties(Dictionary <Type, TypeInfo> workingTypes)
 {
     foreach (var propInfo in this.Type.FindProperties())
     {
         var prop = TypePropertyInfo.Create(this, propInfo, workingTypes);
         this._allProperties[propInfo.Name]        = prop;
         this._camelCaseProperties[prop.CamelName] = prop;
     }
 }