Class ConstsManager
- Namespace
- SunamoDevCode
- Assembly
- SunamoDevCode.dll
Manager for working with constant definitions in XlfKeys.cs file
public class ConstsManager
- Inheritance
-
ConstsManager
- Inherited Members
- Extension Methods
Constructors
ConstsManager(string, Func<string, bool>)
Initializes a new instance of ConstsManager
public ConstsManager(string pathXlfKeys, Func<string, bool> shouldIncludeInXlfKeys)
Parameters
pathXlfKeysstringPath to XlfKeys.cs file
shouldIncludeInXlfKeysFunc<string, bool>Function to determine if key should be in XlfKeys
Properties
PathXlfKeys
Path to XlfKeys.cs file
public string PathXlfKeys { get; }
Property Value
Methods
AddConsts(List<string>, List<string>?)
Add to XlfKeys.cs from xlf Must manually call XlfResourcesH.SaveResouresToRL(BasePathsHelper.sunamoProject) before Called externally from MiAddTranslationWhichIsntInKeys_Click
public Task AddConsts(List<string> keysAll, List<string>? valuesAll = null)
Parameters
keysAllList<string>List of keys to add
valuesAllList<string>Optional list of values corresponding to keys. If null, keys will be used as values.
Returns
AddKeysConsts(List<string>, int, List<string>, List<string>?)
Add constant keys to the generated code
public void AddKeysConsts(List<string> keysAll, int first, List<string> lines, List<string>? valuesAll = null)
Parameters
keysAllList<string>List of all keys to add
firstintPosition where to insert the generated code
linesList<string>List of source code lines to modify
valuesAllList<string>Optional list of values. If null, keys will be used as values.
GetConsts()
Get consts which exists in XlfKeys.cs
public Task<OutRef3DC<List<string>, int, List<string>>> GetConsts()