VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
static TAttribute AVR.Core.Utils.Misc.GetAttribute< TAttribute > ( this System.Type  type)
inlinestatic

Get custom System.Attribute from a given type

Parameters
typeType to get Attribute from
Template Parameters
TAttributeAttribute type to retrive
Returns
First attribute of given type attatched to given type.
Type Constraints
TAttribute :System.Attribute 

Definition at line 215 of file AVR_Utils.cs.

215  : System.Attribute
216  {
217  return type.GetCustomAttributes(typeof(TAttribute), true).FirstOrDefault() as TAttribute;
218  }