//============================================================================================================= // This group of apis are equivalent to the desktop CLR's: // // type.Get***(name, BindingFlags.Public|BindingFlags.Static|BindingFlags.Instance) // // Note that unlike the GetRuntime***() apis defined on this same class, non-public members are excluded from the search. // // Searches all *public* directly declared and inherited members. If there's a multiple match, // the most derived one wins. // // throws AmbiguousMatchException() if the names two members declared by the same class. //============================================================================================================= public static FieldInfo GetRuntimeField(this CType type, String name) { return(type.GetField(name, defaultPublicFlags)); }
public override FieldInfo GetField(string name, BindingFlags bindingAttr) { return(typeImpl.GetField(name, bindingAttr)); }