C # in a Nutshell, Second Edition

InterfaceMapping

System.Reflection (mscorlib.dll) struct

This value type allows you to retrieve information about interfaces. To access the Type for an interface, use InterfaceType . TargetType contains the Type of the implementing class. Similarly, InterfaceMethods and TargetMethods return the methods of the interface and the implementing class, respectively.

public struct InterfaceMapping { // Public Instance Fields public MethodInfo[ ] InterfaceMethods ; public Type InterfaceType ; public MethodInfo[ ] TargetMethods ; public Type TargetType ; }

Hierarchy

System.Object System.ValueType InterfaceMapping

Returned By

System.Type.GetInterfaceMap( )

Категории