Name
IReflect
Synopsis
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(stringname
, BindingFlagsbindingAttr
); public FieldInfo[ ] GetFields(BindingFlagsbindingAttr
); public MemberInfo[ ] GetMember(stringname
, BindingFlagsbindingAttr
); public MemberInfo[ ] GetMembers(BindingFlagsbindingAttr
); public MethodInfo GetMethod(stringname
, BindingFlagsbindingAttr
); public MethodInfo GetMethod(stringname
, BindingFlagsbindingAttr
, Binderbinder
, Type[ ]types
, ParameterModifier[ ]modifiers
); public MethodInfo[ ] GetMethods(BindingFlagsbindingAttr
); public PropertyInfo[ ] GetProperties(BindingFlagsbindingAttr
); public PropertyInfo GetProperty(stringname
, BindingFlagsbindingAttr
); public PropertyInfo GetProperty(stringname
, BindingFlagsbindingAttr
, Binderbinder
, TypereturnType
, Type[ ]types
, ParameterModifier[ ]modifiers
); public object InvokeMember(stringname
, BindingFlagsinvokeAttr
, Binderbinder
, object
Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.