Class ContextCommentAttribute
For Classes, Fields, Properties, Methods and Enums to localize other attribute parameters e.g.: [Eco, LocDescription("Some description"), ContextComment(typeof(LocDescriptionAttribute), "Some description context")] public class CivicAction_AddElement { [AutoContextComment("Player Configuration")] public Setting Config { get; set; } }
will extract "Some description" loc string with context 'Some description context'
Inheritance
System.Object
ContextCommentAttribute
Namespace: Eco.Shared.Localization
Assembly: Eco.Shared.dll
Syntax
public class ContextCommentAttribute : Attribute
Constructors
ContextCommentAttribute(Type, String[])
Declaration
public ContextCommentAttribute(Type attributeType, params string[] comments)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | attributeType | |
| System.String[] | comments |
Properties
AttributeType
Declaration
public Type AttributeType { get; protected set; }
Property Value
| Type | Description |
|---|---|
| System.Type |
Comments
Declaration
public string[] Comments { get; protected set; }
Property Value
| Type | Description |
|---|---|
| System.String[] |