ExtensionsGetBaseTypes Method |
Gets all the base types (base classes and interfaces) extended, implemented or inherited by the current
Type.
Namespace:
Enkoni.Framework
Assembly:
Enkoni.Framework (in Enkoni.Framework.dll) Version: 1.3.0.1
Syntaxpublic static Type[] GetBaseTypes(
this Type source
)
<ExtensionAttribute>
Public Shared Function GetBaseTypes (
source As Type
) As Type()
public:
[ExtensionAttribute]
static array<Type^>^ GetBaseTypes(
Type^ source
)
[<ExtensionAttribute>]
static member GetBaseTypes :
source : Type -> Type[]
Parameters
- source
- Type: SystemType
The Type whose base types must be retrieved.
Return Value
Type:
TypeThe base types that are extended, implemented or inherited by the current
Type.
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