BuildMaster SDK Reference
Version:

ReflectionExtensions Class

Contains reflection related extension methods.

Inheritance Hierarchy

  • object
    • Inedo.ReflectionExtensions

Syntax

public class ReflectionExtensions

Methods

Name Description
GetCustomAttribute<T>(System.Reflection.ICustomAttributeProvider member)

Returns an attribute (typed <typeparamref name="T" />) if it is present on a member.

GetCustomAttributes<T>(System.Reflection.ICustomAttributeProvider member)

Returns the attributes (typed <typeparamref name="T" />) if any are present on a member.

GetGenericArgumentsFromAncestor(System.Type type, System.Type genericTypeDefinition)

Returns the generic arguments from an ancestor with the specified generic type definition from the specified type, or an empty type array if the type's ancestors do not implement the specified generic type definition.