 | ReflectionUtilsHandleTypesWithAttributeT Method |
Searches all loaded assemblies and returns the types which have the specified attribute
and executes the specified action for those.
Namespace: Slash.Reflection.UtilsAssembly: Slash.Reflection (in Slash.Reflection.dll) Version: 1.0.6018.40175
Syntaxpublic static void HandleTypesWithAttribute<T>(
Action<Type, T> action
)
where T : Attribute
Public Shared Sub HandleTypesWithAttribute(Of T As Attribute) (
action As Action(Of Type, T)
)
public:
generic<typename T>
where T : Attribute
static void HandleTypesWithAttribute(
Action<Type^, T>^ action
)
static member HandleTypesWithAttribute :
action : Action<Type, 'T> -> unit when 'T : Attribute
Parameters
- action
- Type: SystemActionType, T
Action to execute for found types and their attribute.
Type Parameters
- T
- Type of the attribute to get the types of.
See Also