I have the following listing:
public enum EReferenceKey { Accounts = 1, Emails = 3, Phones = 4 }
When my enum pk variable is accounts and I try to convert it to "01" using
var a = pk.ToString("00");
this gives me the following exception:
String format can only be "G", "g", "X", "x", "F", "f", "D" or "d"
Can someone explain what I'm doing wrong?
source share