Class ElementInfoLocalization
Localization information for IElementInfo.
Inheritance
System.Object
System.Dynamic.DynamicObject
ElementInfoLocalization
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)
System.Object.ToString()
Namespace: Kephas.Reflection.Localization
Assembly: Kephas.Core.dll
Syntax
public class ElementInfoLocalization : Localization, IElementInfoLocalization, ILocalization, IExpando, IDynamicMetaObjectProvider, IIndexable
Constructors
| Improve this Doc View SourceElementInfoLocalization()
Initializes a new instance of the ElementInfoLocalization class.
Declaration
public ElementInfoLocalization()
ElementInfoLocalization(IElementInfo)
Initializes a new instance of the ElementInfoLocalization class.
Declaration
public ElementInfoLocalization(IElementInfo elementInfo)
Parameters
Type | Name | Description |
---|---|---|
IElementInfo | elementInfo | Information describing the element. |
Properties
| Improve this Doc View SourceDescription
Gets or sets the localized description.
Declaration
public virtual string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String | The localized description. |
DisplayAttribute
Gets the display attribute used to extract the localized values.
Declaration
protected DisplayAttribute DisplayAttribute { get; }
Property Value
Type | Description |
---|---|
System.ComponentModel.DataAnnotations.DisplayAttribute |
Name
Gets or sets the localized name.
Declaration
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | The localized name. |
Methods
| Improve this Doc View SourceTryGetDisplayAttribute(IElementInfo)
Tries to get the display attribute from the provided IElementInfo.
Declaration
protected virtual DisplayAttribute TryGetDisplayAttribute(IElementInfo elementInfo)
Parameters
Type | Name | Description |
---|---|---|
IElementInfo | elementInfo | Information describing the element. |
Returns
Type | Description |
---|---|
System.ComponentModel.DataAnnotations.DisplayAttribute | A DisplayAttribute or |
Implements
System.Dynamic.IDynamicMetaObjectProvider