CustomAttributeHelper Class
Namespace: PTS.Reflection
Assembly: PTS.Reflection.dll
Syntax
public static class CustomAttributeHelper
Inheritance
System.Object
CustomAttributeHelper
Methods
GetCustomAttributes<TAttribute>()
Declaration
public static List<TAttribute> GetCustomAttributes<TAttribute>()
where TAttribute : Attribute
Returns
Type | Description |
---|---|
System.Collections.Generic.List<TAttribute> |
Type Parameters
Name | Description |
---|---|
TAttribute |
GetTypesWithAttribute<TAttribute>()
Declaration
public static List<Type> GetTypesWithAttribute<TAttribute>()
where TAttribute : Attribute
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.Type> |
Type Parameters
Name | Description |
---|---|
TAttribute |
GetTypesWithAttribute<TAttribute>(Assembly)
Declaration
public static IEnumerable<Type> GetTypesWithAttribute<TAttribute>(Assembly assembly)
where TAttribute : Attribute
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.Assembly | assembly |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Type> |
Type Parameters
Name | Description |
---|---|
TAttribute |
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()