I am looking to output the variable name e.g "RedTrait" and NOT its value e.g. 40 into a label.
var numbers = new[] { RedTrait, BlueTrait, GreenTrait, Yellow };
string FirstTrait;
double dFirstTrait;
dFirstTrait = numbers.Max();
FirstTrait = dFirstTrait.ToString();
lblFirst.Text = FirstTrait;
string SecondTrait;
double dSecondTrait = numbers.OrderBy(num => num).Reverse().ElementAt(1);
SecondTrait = dSecondTrait.ToString();
lblSecond.Text = SecondTrait;
this is my current code, the code not shown above just produces the value of my variables in the array. Each variable holds a value. When run the labels correctly display the value but not the variable name. E.g "RedTrait" rather than "40"