An object representing the interface with the specified name, implemented or inherited by the current Type, if found; otherwise, null.
Type Reason ArgumentNullException name is null. System.Reflection.AmbiguousMatchException The current instance represents a type that implements the same generic interface with different type arguments.
The search for name is case-sensitive.
If the current Type represents a constructed generic type, this method returns the Type with the type parameters replaced by the appropriate type arguments.
If the current Type represents a type parameter in the definition of a generic type or generic method, this method searches the interface constraints and any interfaces inherited from class or interface constraints.
For generic interfaces, the name parameter is the mangled name, ending with a grave accent (`) and the number of type parameters. This is true for both generic interface definitions and constructed generic interfaces. For example, to find IExample<T> (IExample(Of T) in Visual Basic) or IExample<string> (IExample(Of String) in Visual Basic), search for "IExample`1".