private static PropertyInfo GetProperty( string key) { if (!CachedReflection.Has(key)) { CachedReflection.Cache(key, ConsoleWindowType.GetProperty(key, DefaultFlags)); } return(CachedReflection.Get <PropertyInfo>(key)); }
private static MethodInfo GetMethod( string key) { if (!CachedReflection.Has(key)) { CachedReflection.Cache(key, ConsoleWindowType.GetMethod(key, DefaultFlags)); } return(CachedReflection.Get <MethodInfo>(key)); }
private static FieldInfo GetField( string key, Type type) { if (!CachedReflection.Has(key)) { CachedReflection.Cache(key, type.GetField(key)); } return(CachedReflection.Get <FieldInfo>(key)); }