Class DynamicElementInfo
Dynamic element information.
Inheritance
System.Object
System.Dynamic.DynamicObject
DynamicElementInfo
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.Reflection.Dynamic
Assembly: Kephas.Core.dll
Syntax
public abstract class DynamicElementInfo : Expando, IElementInfo, IExpando, IDynamicMetaObjectProvider, IIndexable, IAttributeProvider
Properties
| Improve this Doc View SourceAnnotations
Gets the element annotations.
Declaration
public IEnumerable<object> Annotations { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Object> | The element annotations. |
DeclaringContainer
Gets or sets the parent element declaring this element.
Declaration
public IElementInfo DeclaringContainer { get; protected set; }
Property Value
Type | Description |
---|---|
IElementInfo | The declaring element. |
FullName
Gets or sets the full name of the element.
Declaration
public virtual string FullName { get; protected set; }
Property Value
Type | Description |
---|---|
System.String | The full name of the element. |
Name
Gets or sets the name of the element.
Declaration
public string Name { get; protected set; }
Property Value
Type | Description |
---|---|
System.String | The name of the element. |
Methods
| Improve this Doc View SourceAddAnnotation(Object)
Adds an annotation to the dynamic element.
Declaration
protected virtual void AddAnnotation(object annotation)
Parameters
Type | Name | Description |
---|---|---|
System.Object | annotation | The annotation. |
GetAttributes<TAttribute>()
Gets the attribute of the provided type.
Declaration
public IEnumerable<TAttribute> GetAttributes<TAttribute>()
where TAttribute : Attribute
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TAttribute> | The attribute of the provided type. |
Type Parameters
Name | Description |
---|---|
TAttribute | Type of the attribute. |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents the current object. |
Overrides
System.Object.ToString()
Implements
System.Dynamic.IDynamicMetaObjectProvider