I\'m new to programming and having a problem with the following code:
private string alphaCoords(Int32 x)
{
char alphaChar;
switch (
Add a default to your switch, because if x is 10, alphaChar will never be assigned.
Before its first use local variable must be definitely assigned (according to C# specification rules). In this particular case switch construct doesn't guarantee that alphaChar will be definitely assigned thus compiler error. You can provide initial value to alphaChar and thus it will be definitely assigned.