Click or drag to resize
AssemblyExtensionsGetAvailableTypes Method
Returns all the Type objects with match the given typeFilter from the executing assembly and any assemblies in its or lower directories.

Namespace: Slash.Reflection.Extensions
Assembly: Slash.Reflection (in Slash.Reflection.dll) Version: 1.0.6018.40175
Syntax
public static IEnumerable<Type> GetAvailableTypes(
	this Assembly assembly,
	Func<Assembly, bool> assemblyFilter = null,
	Func<Type, bool> typeFilter = null
)

Parameters

assembly
Type: System.ReflectionAssembly
The Assembly on which the method is called.
assemblyFilter (Optional)
Type: SystemFuncAssembly, Boolean
The filter which should be satisfied to consider an Assembly for the returned set of Types, if applicable.
typeFilter (Optional)
Type: SystemFuncType, Boolean
The filter which should be satisfied to include the Type in the returned set of Types, if applicable.

Return Value

Type: IEnumerableType
Any Types which match the typeFilter .

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