Mono Class Library: System.Type Overview | Members

System.Type.GetInterfaces Method

Returns all interfaces implemented or inherited by the type represented by the current instance.

public abstract Type[] GetInterfaces ()

Returns

An array of Type objects representing the interfaces implemented or inherited by the type represented by the current instance. If no interfaces are found, returns an empty Type array.

Remarks

If the current instance represents a generic type, this method returns the Type objects with the type parameters replaced by the appropriate type arguments.

If the current instance represents an unassigned type parameter of a generic type or method, this method searches the interface constraints and any interfaces inherited from class or interface constraints.

Note: Even with the introduction of generics, the overloads of Type.GetInterface continue to return only non-generic members. To get the generic ones, one must call Type.GetInterfaces, and filter them out.

Requirements

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