Let's say we have this enum:
[Flags]
public enum SerialBaudRate {
Default = _11520bps,
_9600bps = 0,
_19200bps = 1,
_11520bps = 2,
_230400bps = 3,
_460800bps = 4,
}
and we want to print out the enum value using interpolated string:
Console.WriteLine($"SerialBaudRate: {SerialBaudRate._11520bps}");
Console output will be:
SerialBaudRate: Default
How to make Default
value name to be ignored then printing it to the string and use (print) _11520bps
instead ?