|
TypeExtensionsLoadImplementations(Type, String, Boolean, Boolean, Boolean) Method
|
Loads public types from assemblies in the specified binariesDirectory that implement
the specified type either through class inheritance or interface implementation.
Namespace: GSFAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.182-beta
Syntax public static List<Type> LoadImplementations(
this Type type,
string binariesDirectory,
bool excludeAbstractTypes,
bool validateReferences = true,
bool executeStaticConstructors = false
)
[<ExtensionAttribute>]
static member LoadImplementations :
type : Type *
binariesDirectory : string *
excludeAbstractTypes : bool *
?validateReferences : bool *
?executeStaticConstructors : bool
(* Defaults:
let _validateReferences = defaultArg validateReferences true
let _executeStaticConstructors = defaultArg executeStaticConstructors false
*)
-> List<Type>
GSF.TypeExtensions.LoadImplementations = function(type, binariesDirectory, excludeAbstractTypes, validateReferences, executeStaticConstructors);
View SourceParameters
- type Type
- The Type that must be implemented by the public types.
- binariesDirectory String
- The directory containing the assemblies to be processed.
- excludeAbstractTypes Boolean
- true to exclude public types that are abstract; otherwise false.
- validateReferences Boolean (Optional)
- True to validate references of loaded assemblies before attempting to instantiate types; false otherwise.
- executeStaticConstructors Boolean (Optional)
- True to execute static constructors of loaded implementations; false otherwise.
Return Value
ListTypePublic types that implement the specified
type.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Type. 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