Hi,
I have an enum like this
private
enum Chord_Flat{
C = 0,
Db,
D,
Eb,
E,
F,
Gb,
G,
Ab,
A,
Bb,
B
}
If I have a String chord = "C" I would like to convert it to "Db" by adding 1. How does this enum arithmetic work in C# and Visual Studio 2005
Best
/M

Enum Conversion
prog.gabi
Thank you. Great answer
/M
Jim Perry
Chord_Flat c = (Chord_Flat)Enum.Parse(typeof(Chord_Flat), chord);
Chord_Flat db = (Chord_Flat)((int)c + 1);
chord = db.ToString();