Click or drag to resize

ReflectionUtilitiesFindDerivedTypesFromAssembly Method

Find all the Types that inherit from a certain Type.

Namespace:  DustProductions.Core
Assembly:  DustProductions.Core (in DustProductions.Core.dll) Version: (
public static List<Type> FindDerivedTypesFromAssembly(
	this Assembly assembly,
	Type baseType,
	bool classOnly = false


Type: System.ReflectionAssembly
The Assembly to search for the Types
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: ListType
A 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