Hello,
When I call the ToString() methods on an expression, the enum value are printed as integers. Is there some format overload ?
Maybe I can create an derviedclass from expression and override some ToString Method. Any thoughts ?
Here is a sample :
public enum LengthUnits { METRES, FEET };
Expression<Func<LengthUnits, bool>> isFeet = l => l == LengthUnits.FEET;
string isFeetFunctinoAsString = isFeet.ToString();
The value of isFeetFunctinoAsString is :
u => (Convert(u) = 1)
I do not want the 1 but FEET .