@@ -15,9 +15,9 @@ namespace ServiceStack
1515 [ Obsolete ( "Use TypeProperties<T>.Instance" ) ]
1616 public static class TypeReflector < T > { }
1717
18- public class TypePropertyInfo
18+ public class PropertyAccessor
1919 {
20- public TypePropertyInfo (
20+ public PropertyAccessor (
2121 PropertyInfo propertyInfo ,
2222 GetMemberDelegate publicGetter ,
2323 SetMemberDelegate publicSetter )
@@ -46,7 +46,7 @@ static TypeProperties()
4646 {
4747 try
4848 {
49- Instance . PropertyMap [ pi . Name ] = new TypePropertyInfo (
49+ Instance . PropertyMap [ pi . Name ] = new PropertyAccessor (
5050 pi ,
5151 PclExport . Instance . CreateGetter ( pi ) ,
5252 PclExport . Instance . CreateSetter ( pi )
@@ -59,9 +59,9 @@ static TypeProperties()
5959 }
6060 }
6161
62- public static TypePropertyInfo GetAccessor ( string propertyName )
62+ public static PropertyAccessor GetAccessor ( string propertyName )
6363 {
64- return Instance . PropertyMap . TryGetValue ( propertyName , out TypePropertyInfo info )
64+ return Instance . PropertyMap . TryGetValue ( propertyName , out PropertyAccessor info )
6565 ? info
6666 : null ;
6767 }
@@ -96,17 +96,17 @@ public static TypeProperties Get(Type type)
9696 return instance ;
9797 }
9898
99- public TypePropertyInfo GetAccessor ( string propertyName )
99+ public PropertyAccessor GetAccessor ( string propertyName )
100100 {
101- return PropertyMap . TryGetValue ( propertyName , out TypePropertyInfo info )
101+ return PropertyMap . TryGetValue ( propertyName , out PropertyAccessor info )
102102 ? info
103103 : null ;
104104 }
105105
106106 public Type Type { get ; protected set ; }
107107
108- public readonly Dictionary < string , TypePropertyInfo > PropertyMap =
109- new Dictionary < string , TypePropertyInfo > ( PclExport . Instance . InvariantComparerIgnoreCase ) ;
108+ public readonly Dictionary < string , PropertyAccessor > PropertyMap =
109+ new Dictionary < string , PropertyAccessor > ( PclExport . Instance . InvariantComparerIgnoreCase ) ;
110110
111111 public PropertyInfo [ ] PublicPropertyInfos { get ; protected set ; }
112112
@@ -127,7 +127,7 @@ public GetMemberDelegate GetPublicGetter(string name)
127127 if ( name == null )
128128 return null ;
129129
130- return PropertyMap . TryGetValue ( name , out TypePropertyInfo info )
130+ return PropertyMap . TryGetValue ( name , out PropertyAccessor info )
131131 ? info . PublicGetter
132132 : null ;
133133 }
@@ -139,7 +139,7 @@ public SetMemberDelegate GetPublicSetter(string name)
139139 if ( name == null )
140140 return null ;
141141
142- return PropertyMap . TryGetValue ( name , out TypePropertyInfo info )
142+ return PropertyMap . TryGetValue ( name , out PropertyAccessor info )
143143 ? info . PublicSetter
144144 : null ;
145145 }
0 commit comments