Class AutoContextCommentAttribute
Add context comment to Classes, Fields, Properties and Enums auto-localized via EcoAttribute or LocalizedAttribute e.g.: [Localized] class Player { [AutoContextComment("Player Configuration")] public Setting Config { get; set; } }
will extract "Config" loc string with context 'Player Configuration'
Inheritance
System.Object
AutoContextCommentAttribute
Namespace: Eco.Shared.Localization
Assembly: Eco.Shared.dll
Syntax
public class AutoContextCommentAttribute : Attribute
Constructors
AutoContextCommentAttribute(String)
Declaration
public AutoContextCommentAttribute(string comment)
Parameters
Type | Name | Description |
---|---|---|
System.String | comment |
Properties
Comment
Declaration
public string Comment { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |