 | AssemblyExtensionsGetAvailableAssemblies Method |
Returns all available assemblies for the specified assembly which match the given assemblyFilter.
Searches through the assembly directory.
Namespace: Slash.Reflection.ExtensionsAssembly: Slash.Reflection (in Slash.Reflection.dll) Version: 1.0.6018.40175
Syntaxpublic static IEnumerable<Assembly> GetAvailableAssemblies(
this Assembly assembly,
Func<Assembly, bool> assemblyFilter = null
)
<ExtensionAttribute>
Public Shared Function GetAvailableAssemblies (
assembly As Assembly,
Optional assemblyFilter As Func(Of Assembly, Boolean) = Nothing
) As IEnumerable(Of Assembly)
public:
[ExtensionAttribute]
static IEnumerable<Assembly^>^ GetAvailableAssemblies(
Assembly^ assembly,
Func<Assembly^, bool>^ assemblyFilter = nullptr
)
[<ExtensionAttribute>]
static member GetAvailableAssemblies :
assembly : Assembly *
?assemblyFilter : Func<Assembly, bool>
(* Defaults:
let _assemblyFilter = defaultArg assemblyFilter null
*)
-> IEnumerable<Assembly>
Parameters
- assembly
- Type: System.ReflectionAssembly
Assembly to get available assemblies for. - assemblyFilter (Optional)
- Type: SystemFuncAssembly, Boolean
The filter which should be satisfied to consider an Assembly for the returned set of Types, if applicable.
Return Value
Type:
IEnumerableAssembly
Any available assemblies for the specified assembly which match the
assemblyFilter .
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