IReflect

IReflect

System.Reflection (mscorlib.dll) interface

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   ); } 

Implemented By

System.Type , System.Runtime.InteropServices.Expando.IExpando



C# in a Nutshell
C # in a Nutshell, Second Edition
ISBN: 0596005261
EAN: 2147483647
Year: 2005
Pages: 963

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net