Table of Contents

Interface IReflect

Namespace
System.Reflection
Assembly
mscorlib.dll

Interoperates with the IDispatch interface.

public interface IReflect
Extension Methods

Remarks

Available only in mscorlib build with support for System.Reflection.

Methods

GetField(string, BindingFlags)

Returns the FieldInfo object that corresponds to the specified field and binding flag.

FieldInfo GetField(string name, BindingFlags bindingAttr)

Parameters

name string

The name of the field to find.

bindingAttr BindingFlags

The binding attributes used to control the search.

Returns

FieldInfo

A FieldInfo object containing the field information for the named object that meets the search constraints specified in bindingAttr.

GetMethod(string, BindingFlags)

Retrieves a MethodInfo object that corresponds to a specified method under specified search constraints.

MethodInfo GetMethod(string name, BindingFlags bindingAttr)

Parameters

name string

The name of the member to find.

bindingAttr BindingFlags

The binding attributes used to control the search.

Returns

MethodInfo

A MethodInfo object containing the method information, with the match being based on the method name and search constraints specified in bindingAttr.