greetings, could you please help? i need to get a variable (name) in string format. for example below i need to display "test" as string.
int test = 69;
//below does not work
MessageBox.Show((string)test);
// below works but displays the int value
MessageBox.Show(test.ToString());
thank you for your time.
well i have an enum:
public enum ShipOrientation
{
North,
East,
South,
West
}
and i do some processing based on direction and if int North then apply enum North direction.