Good day!
To use a variable in enum, it became necessary to translate it into a constant, and therefore faced the following:
public const int Aries = Convert.ToInt32(@"Sample text"); Error 1 The expression being assigned to 'myNameSpace.Class2.Aries' must be constant Is there an adequate way to convert text to an int constant?
const-variable cannot be initialized by the result of a function call - VladD