System.Reflection.Emit.EnumBuilder.GetInterface Method

Returns the interface implemented (directly or indirectly) by this type, with the specified fully-qualified name.

Syntax

public override Type GetInterface (string name, bool ignoreCase)

Parameters

name
The name of the interface.
ignoreCase
If true, the search is case-insensitive. If false, the search is case-sensitive.

Returns

Returns a Type object representing the implemented interface. Returns null if no interface matching name is found.

Remarks

As a workaround, to retrieve the interface of a finished type, retrieve the type using Type.GetType or System.Reflection.Assembly.GetType(string) and use reflection on the retrieved type.

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0