public enum CasingInt : int
{
A = 1,
B = 2,
C = 3,
D = 4,
E = 5,
F = 6,
G = 7,
H = 8,
I = 9,
J = 0
}
private string CasingIntToEncryptString(string source)
{
string result = "";
char[] charArr = source.ToCharArray();
foreach (char c in charArr)
{
foreach (int enumVal in System.Enum.GetValues(typeof(CasingInt)))
{
if (string.Equals(enumVal.ToString(), c.ToString()))
{
result = result + System.Enum.GetName(typeof(CasingInt), enumVal);
break;
}
}
}
return result;
}