ReflectionExtensionMethods
Provides a set of extension methods for System.Reflection.Assembly.
Methods
Enumerate over all public types which derive from a specific class or interface. Abstract classes are skipped, but generic classes are included.
public static IEnumerable<Type> AllPublicClassImplementations()
this Assembly
assembly,
Assembly to iterate over.
type,
Type representing a class or interface to be inherited from.
filterEmptyConstructors
If true, only types with parameterless constructors will be returned.
Returns: Enumerable collection of types.
Find the instance method on a type.
public static MethodInfo FindInstanceMethod()
this Type
type,
Type to search.
name,
Name of method.
public = true,
If true, private, protected, and internal methods will not be searched.
constraint = null
If not null, type constraint for method.
Returns: Found method or null.
Find the static method on a type.
public static MethodInfo FindStaticMethod()
this Type
type,
Type to search.
name,
Name of method.
public = true,
If true, private, protected, and internal methods will not be searched.
constraint = null
If not null, type constraint for method.
Returns: Found method or null.
Gets the type constraint of this parameter. It will either be object If the parameter derives from Parameter or implements IParameter directly, or the T constraint for a type which derives from Parameter<T>.
Test whether a type has an empty, public constructor.
Returns: True if a public, empty constructor exists.
Gets whether a type is a final type. Interfaces, abstract classes and classes with generic constraints are not final.
Gets whether one type if a kind of another type. I.e. whether 'type' can be assigned to 'other'.
Test whether a virtual method has been re-implemented in a more derived type.
Returns: True if the method has been re-implemented.
Test whether a virtual method has been re-implemented.
Returns: True if the method has been re-implemented in the specified type.
Gets the sentence used in the user interface decribing the character of the given conversion merit.