| ReflectionUtilitiesFindDerivedTypesFromAssembly Method |
Find all the Types that inherit from a certain Type.
Namespace:
DustProductions.Core
Assembly:
DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static List<Type> FindDerivedTypesFromAssembly(
this Assembly assembly,
Type baseType,
bool classOnly = false
)
Parameters
- assembly
- Type: System.ReflectionAssembly
The Assembly to search for the Types - baseType
- Type: SystemType
The Type that we want to find all the inherited Types of. - classOnly (Optional)
- Type: SystemBoolean
Whether or not to only search classes.
Return Value
Type:
ListTypeA list of all the inherited Types.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Assembly. 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