 | 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.ExtensionsAssembly: Slash.Reflection (in Slash.Reflection.dll) Version: 1.0.6018.40175
Syntaxpublic static IEnumerable<Type> GetAvailableTypes(
this Assembly assembly,
Func<Assembly, bool> assemblyFilter = null,
Func<Type, bool> typeFilter = null
)
<ExtensionAttribute>
Public Shared Function GetAvailableTypes (
assembly As Assembly,
Optional assemblyFilter As Func(Of Assembly, Boolean) = Nothing,
Optional typeFilter As Func(Of Type, Boolean) = Nothing
) As IEnumerable(Of Type)
public:
[ExtensionAttribute]
static IEnumerable<Type^>^ GetAvailableTypes(
Assembly^ assembly,
Func<Assembly^, bool>^ assemblyFilter = nullptr,
Func<Type^, bool>^ typeFilter = nullptr
)
[<ExtensionAttribute>]
static member GetAvailableTypes :
assembly : Assembly *
?assemblyFilter : Func<Assembly, bool> *
?typeFilter : Func<Type, bool>
(* Defaults:
let _assemblyFilter = defaultArg assemblyFilter null
let _typeFilter = defaultArg typeFilter null
*)
-> IEnumerable<Type>
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