[]
        
(Showing Draft Content)

C1.Document.Utils.GetInterface

GetInterface Method

GetInterface(Type, string, bool)

Searches for the specified interface, specifying whether to do a case-insensitive search for the interface name.

Declaration
public static Type GetInterface(Type type, string interfaceName, bool ignoreCase)
Parameters
Type Name Description
Type type

Represents type declarations: class types, interface types, array types, value types, enumeration types, type parameters, generic type definitions, and open or closed constructed generic types.

string interfaceName

The string containing the name of the interface to get. For generic interfaces, this is the mangled name.

bool ignoreCase

true to ignore the case of that part of name that specifies the simple interface name (the part that specifies the namespace must be correctly cased). -or- false to perform a case-sensitive search for all parts of name.

Returns
Type Description
Type

An object representing the interface with the specified name, implemented or inherited by the current System.Type, if found; otherwise, null.