 | TypeExtensionsGetAttributeT Method |
[Missing <summary> documentation for "M:Slash.Reflection.Extensions.TypeExtensions.GetAttribute``1(System.Type)"]
Namespace: Slash.Reflection.ExtensionsAssembly: Slash.Reflection (in Slash.Reflection.dll) Version: 1.0.6018.40175
Syntaxpublic static T GetAttribute<T>(
this Type type
)
where T : Attribute
<ExtensionAttribute>
Public Shared Function GetAttribute(Of T As Attribute) (
type As Type
) As T
public:
[ExtensionAttribute]
generic<typename T>
where T : Attribute
static T GetAttribute(
Type^ type
)
[<ExtensionAttribute>]
static member GetAttribute :
type : Type -> 'T when 'T : Attribute
Parameters
- type
- Type: SystemType
[Missing <param name="type"/> documentation for "M:Slash.Reflection.Extensions.TypeExtensions.GetAttribute``1(System.Type)"]
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:Slash.Reflection.Extensions.TypeExtensions.GetAttribute``1(System.Type)"]
Return Value
Type:
T[Missing <returns> documentation for "M:Slash.Reflection.Extensions.TypeExtensions.GetAttribute``1(System.Type)"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Type. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also