ExtensionsImplements Method |
Determines if the source implements the specified base type.
Namespace:
Enkoni.Framework
Assembly:
Enkoni.Framework (in Enkoni.Framework.dll) Version: 1.3.0.1
Syntaxpublic static bool Implements(
this Type source,
Type baseType
)
<ExtensionAttribute>
Public Shared Function Implements (
source As Type,
baseType As Type
) As Boolean
public:
[ExtensionAttribute]
static bool Implements(
Type^ source,
Type^ baseType
)
[<ExtensionAttribute>]
static member Implements :
source : Type *
baseType : Type -> bool
Parameters
- source
- Type: SystemType
The instance that must be evaluated. - baseType
- Type: SystemType
The base type that must be implemented.
Return Value
Type:
Boolean if
source implements
baseType;
otherwise.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Type. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also