Show / Hide Table of Contents

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[]

Extension Methods

CommandLine.FeedFromCommandLine(Object)
CommandLine.ToCommandLineArgs(Object, Func<Object, Boolean>)
ListUtil.DepthFirstTraversal<T>(T, Func<T, IEnumerable<T>>)
EnumerableExtensions.SingleItemAsEnumerable<T>(T)
EventUtils.RaiseEvent<TEventArgs>(Object, String, TEventArgs)
PredicateUtils.MatchesAll<TEnumerable, T>(T, TEnumerable)
PredicateUtils.MatchesAll<T>(T, Func<T, Boolean>[])
PredicateUtils.MatchesAny<TEnumerable, T>(T, TEnumerable)
ReflectionUtils.PropertyValue<T>(Object, PropertyInfo)
ReflectionUtils.TryGetPropertyValueByName<T>(Object, String, out T)
ReflectionUtils.GetPropertyValueByName<T>(Object, String)
ReflectionUtils.SetPropertyByName(Object, String, Object)
ReflectionUtils.GetStructPropertyByName<T>(Object, String)
ReflectionUtils.GetStringPropertyByName(Object, String)
ReflectionUtils.ZipByProperty<T>(Object, Object, Object, Func<T, T, T>)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾