Get the base interface type for the give type.
If type is an interface type, return itself;
If the type has multiple interface implementations, returns the one with
type name closest to the object type
Namespace: Cartella.SupportAssembly: CartellaBase (in CartellaBase.dll) Version: 4.1.0.171 (4.1.0.171)
Syntax
C# |
---|
public static Type GetInterface(
Type objectType
) |
Visual Basic |
---|
Public Shared Function GetInterface ( _
objectType As Type _
) As Type |
Visual C++ |
---|
public:
static Type^ GetInterface(
Type^ objectType
) |
Parameters
- objectType
- Type: System..::..Type
Type of object to retrieve interface type for
Return Value
Closest interface type of the given type
See Also