예제 #1
0
 public static PropertyReflector GetReflector(this PropertyInfo property)
 {
     return(ReflectorCache <PropertyInfo, PropertyReflector> .GetOrAdd(property, Create));
 }
예제 #2
0
 public static TypeReflector GetReflector(this TypeInfo type)
 {
     return(ReflectorCache <TypeInfo, TypeReflector> .GetOrAdd(type, Create));
 }
예제 #3
0
 internal static CustomAttributeReflector Create(CustomAttributeData customAttributeData)
 {
     return(ReflectorCache <CustomAttributeData, CustomAttributeReflector> .GetOrAdd(customAttributeData, data => new CustomAttributeReflector(data)));
 }
예제 #4
0
 public static MethodReflector GetReflector(this MethodInfo method)
 {
     return(ReflectorCache <MethodInfo, MethodReflector> .GetOrAdd(method, Create));
 }
예제 #5
0
 public static FieldReflector GetReflector(this FieldInfo field)
 {
     return(ReflectorCache <FieldInfo, FieldReflector> .GetOrAdd(field, Create));
 }