Пример #1
0
 private static PropertyInfo GetProperty(
     string key)
 {
     if (!CachedReflection.Has(key))
     {
         CachedReflection.Cache(key, ConsoleWindowType.GetProperty(key, DefaultFlags));
     }
     return(CachedReflection.Get <PropertyInfo>(key));
 }
Пример #2
0
 private static MethodInfo GetMethod(
     string key)
 {
     if (!CachedReflection.Has(key))
     {
         CachedReflection.Cache(key, ConsoleWindowType.GetMethod(key, DefaultFlags));
     }
     return(CachedReflection.Get <MethodInfo>(key));
 }
Пример #3
0
 private static FieldInfo GetField(
     string key,
     Type type)
 {
     if (!CachedReflection.Has(key))
     {
         CachedReflection.Cache(key, type.GetField(key));
     }
     return(CachedReflection.Get <FieldInfo>(key));
 }