I have a question here in converting an enum to a string, but I need the conversion to be filled with zero 2 digit. example
public enum System { Unknown = 0, Mirror = 3, Order = 17 } the output would be this "03".
with example below it works
int value; value = 3; Console.WriteLine(value.ToString("D2")); // Displays 03 but with enum does not work
Console.WriteLine(SourceSystem.Mirror.ToString("D2")); and this error appears
System.FormatException Message=Format String can be only "G", "g", "X", "x", "F", "f", "D" or "d".....
int value = (int)System.Mirror; Console.WriteLine(value.ToString("D2"))