| ReflectionUtilitiesGetParentTypes Method |
Finds all the parent Types of a Type in an inheritance tree. Will also return Interfaces and inherited Interfaces.
Namespace:
DustProductions.Core
Assembly:
DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static List<Type> GetParentTypes(
this Type type
)
Parameters
- type
- Type: SystemType
The Type to search for parent Types.
Return Value
Type:
ListTypeA List of Types that the Type passed in inherits from.
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