This interface defines how
types are reflected and provides all the
relevant information about the members of a class (methods, fields,
and properties). The Get methods allow access to
these members. The methods GetField( ),
GetMethod( ), GetProperty( ),
and GetMember( ) return single members of the
specified type by name. The methods GetFields( ),
GetMethods( ), GetProperties(
), and GetMembers( ) return all of the
specified type of members contained by the class.
public interface IReflect {
// Public Instance Properties
public Type UnderlyingSystemType{get; }
// Public Instance Methods
public FieldInfo GetField(string name, BindingFlags bindingAttr);
public FieldInfo[ ] GetFields(BindingFlags bindingAttr);
public MemberInfo[ ] GetMember(string name, BindingFlags bindingAttr);
public MemberInfo[ ] GetMembers(BindingFlags bindingAttr);
public MethodInfo GetMethod(string name, BindingFlags bindingAttr);
public MethodInfo GetMethod(string name, BindingFlags bindingAttr, Binder binder,
Type[ ] types, ParameterModifier[ ] modifiers);
public MethodInfo[ ] GetMethods(BindingFlags bindingAttr);
public PropertyInfo[ ] GetProperties(BindingFlags bindingAttr);
public PropertyInfo GetProperty(string name, BindingFlags bindingAttr);
public PropertyInfo GetProperty(string name, BindingFlags bindingAttr, Binder binder,
Type returnType, Type[ ] types, ParameterModifier[ ] modifiers);
public object InvokeMember(string name, BindingFlags invokeAttr, Binder binder, object target,
object[ ] args, ParameterModifier[ ] modifiers, System.Globalization.CultureInfo culture,
string[ ] namedParameters);
}