Class AttributeAnnotation<TAttribute>
An annotation holding a runtime attribute.
Inheritance
System.Object
    System.Dynamic.DynamicObject
    
    
    
    
    AttributeAnnotation<TAttribute>
      
      
  Implements
System.Dynamic.IDynamicMetaObjectProvider
    
    
  Inherited Members
      System.Dynamic.DynamicObject.GetMetaObject(System.Linq.Expressions.Expression)
    
    
      System.Dynamic.DynamicObject.TryBinaryOperation(System.Dynamic.BinaryOperationBinder, System.Object, System.Object)
    
    
      System.Dynamic.DynamicObject.TryConvert(System.Dynamic.ConvertBinder, System.Object)
    
    
      System.Dynamic.DynamicObject.TryCreateInstance(System.Dynamic.CreateInstanceBinder, System.Object[], System.Object)
    
    
      System.Dynamic.DynamicObject.TryDeleteIndex(System.Dynamic.DeleteIndexBinder, System.Object[])
    
    
      System.Dynamic.DynamicObject.TryDeleteMember(System.Dynamic.DeleteMemberBinder)
    
    
      System.Dynamic.DynamicObject.TryGetIndex(System.Dynamic.GetIndexBinder, System.Object[], System.Object)
    
    
      System.Dynamic.DynamicObject.TryInvoke(System.Dynamic.InvokeBinder, System.Object[], System.Object)
    
    
      System.Dynamic.DynamicObject.TrySetIndex(System.Dynamic.SetIndexBinder, System.Object[], System.Object)
    
    
      System.Dynamic.DynamicObject.TryUnaryOperation(System.Dynamic.UnaryOperationBinder, System.Object)
    
    
      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)
    
  Namespace: Kephas.Model.Elements.Annotations
Assembly: Kephas.Model.dll
Syntax
public class AttributeAnnotation<TAttribute> : Annotation, IConstructibleElement, IAttributeAnnotation, IAnnotation, INamedElement, IAggregatedElementInfo, IElementInfo, IExpando, IDynamicMetaObjectProvider, IIndexable, IAttributeProvider where TAttribute : AttributeType Parameters
| Name | Description | 
|---|---|
| TAttribute | Type of the attribute. | 
Constructors
| Improve this Doc View SourceAttributeAnnotation(IModelConstructionContext, String, TAttribute)
Initializes a new instance of the AttributeAnnotation<TAttribute> class.
Declaration
public AttributeAnnotation(IModelConstructionContext constructionContext, string name, TAttribute attribute)Parameters
| Type | Name | Description | 
|---|---|---|
| IModelConstructionContext | constructionContext | Context for the construction. | 
| System.String | name | The model element name. | 
| TAttribute | attribute | The attribute. | 
Properties
| Improve this Doc View SourceAttribute
Gets the attribute.
Declaration
public TAttribute Attribute { get; }Property Value
| Type | Description | 
|---|---|
| TAttribute | The attribute. | 
Methods
| Improve this Doc View SourceGetAttributes<TRuntimeAttribute>()
Gets the attribute of the provided type.
Declaration
public override IEnumerable<TRuntimeAttribute> GetAttributes<TRuntimeAttribute>()
    where TRuntimeAttribute : AttributeReturns
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<TRuntimeAttribute> | The attribute of the provided type. | 
Type Parameters
| Name | Description | 
|---|---|
| TRuntimeAttribute | Type of the attribute. | 
Overrides
Kephas.Model.Elements.NamedElementBase<Kephas.Model.IAnnotation>.GetAttributes<TAttribute>()
  Explicit Interface Implementations
| Improve this Doc View SourceIAttributeAnnotation.Attribute
Gets the attribute.
Declaration
Attribute IAttributeAnnotation.Attribute { get; }Returns
| Type | Description | 
|---|---|
| System.Attribute | The attribute. | 
Implements
      System.Dynamic.IDynamicMetaObjectProvider