TypeExtensionsLoadImplementations(Type, String, Boolean, Boolean) Method

Loads public types from assemblies in the specified binariesDirectory that implement the specified type either through class inheritance or interface implementation.

Definition

Namespace: Gemstone.TypeExtensions
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.110 -- Release Build+3e0464f4461df4d3e1175b13966eb47ff832554d
public static List<Type> LoadImplementations(
	this Type type,
	string binariesDirectory,
	bool excludeAbstractTypes,
	bool validateReferences = true
)

Parameters

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.

Return Value

ListType
Public 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