Class AttributeUtility.AttributeCache
  
  
  
  
    Inheritance
    
    AttributeUtility.AttributeCache
   
  Namespace: Ludiq
  
  Syntax
  
    public class AttributeCache
   
  Constructors
  
  
  
  
  AttributeCache(IAttributeProvider)
  
  
  Declaration
  
    public AttributeCache(IAttributeProvider element)
   
  Parameters
  
  
  
  
  AttributeCache(Assembly)
  
  
  Declaration
  
    public AttributeCache(Assembly element)
   
  Parameters
  
  
  
  
  AttributeCache(MemberInfo)
  
  
  Declaration
  
    public AttributeCache(MemberInfo element)
   
  Parameters
  
  
  
  
  AttributeCache(ParameterInfo)
  
  
  Declaration
  
    public AttributeCache(ParameterInfo element)
   
  Parameters
  
  Methods
  
  
  
  
  GetAttribute(Type, Boolean)
  
  
  Declaration
  
    public Attribute GetAttribute(Type attributeType, bool inherit = true)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Type | 
        attributeType | 
         | 
      
      
        | Boolean | 
        inherit | 
         | 
      
    
  
  Returns
  
  
  
  
  GetAttribute<TAttribute>(Boolean)
  
  
  Declaration
  
    public TAttribute GetAttribute<TAttribute>(bool inherit = true)
    where TAttribute : Attribute
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Boolean | 
        inherit | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | TAttribute | 
         | 
      
    
  
  Type Parameters
  
    
      
        | Name | 
        Description | 
      
    
    
      
        | TAttribute | 
         | 
      
    
  
  
  
  
  GetAttributes(Type, Boolean)
  
  
  Declaration
  
    public IEnumerable<Attribute> GetAttributes(Type attributeType, bool inherit = true)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Type | 
        attributeType | 
         | 
      
      
        | Boolean | 
        inherit | 
         | 
      
    
  
  Returns
  
  
  
  
  GetAttributes<TAttribute>(Boolean)
  
  
  Declaration
  
    public IEnumerable<TAttribute> GetAttributes<TAttribute>(bool inherit = true)
    where TAttribute : Attribute
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Boolean | 
        inherit | 
         | 
      
    
  
  Returns
  
  Type Parameters
  
    
      
        | Name | 
        Description | 
      
    
    
      
        | TAttribute | 
         | 
      
    
  
  
  
  
  HasAttribute(Type, Boolean)
  
  
  Declaration
  
    public bool HasAttribute(Type attributeType, bool inherit = true)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Type | 
        attributeType | 
         | 
      
      
        | Boolean | 
        inherit | 
         | 
      
    
  
  Returns
  
  
  
  
  HasAttribute<TAttribute>(Boolean)
  
  
  Declaration
  
    public bool HasAttribute<TAttribute>(bool inherit = true)
    where TAttribute : Attribute
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Boolean | 
        inherit | 
         | 
      
    
  
  Returns
  
  Type Parameters
  
    
      
        | Name | 
        Description | 
      
    
    
      
        | TAttribute | 
         | 
      
    
  
  
  
  
  TryGetAttribute<TAttribute>(out TAttribute, Boolean)
  
  
  Declaration
  
    public bool TryGetAttribute<TAttribute>(out TAttribute attribute, bool inherit = true)
    where TAttribute : Attribute
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | TAttribute | 
        attribute | 
         | 
      
      
        | Boolean | 
        inherit | 
         | 
      
    
  
  Returns
  
  Type Parameters
  
    
      
        | Name | 
        Description | 
      
    
    
      
        | TAttribute | 
         | 
      
    
  
  Extension Methods