 | ReflectionUtilsFindTypesWithAttributeT Method |
Searches all loaded assemblies and returns the types which have the specified attribute.
Namespace: Slash.Reflection.UtilsAssembly: Slash.Reflection (in Slash.Reflection.dll) Version: 1.0.6018.40175
Syntaxpublic static IEnumerable<Type> FindTypesWithAttribute<T>()
where T : Attribute
Public Shared Function FindTypesWithAttribute(Of T As Attribute) As IEnumerable(Of Type)
public:
generic<typename T>
where T : Attribute
static IEnumerable<Type^>^ FindTypesWithAttribute()
static member FindTypesWithAttribute : unit -> IEnumerable<Type> when 'T : Attribute
Type Parameters
- T
- Type of the attribute to get the types of.
Return Value
Type:
IEnumerableTypeList of found types.
See Also