Wednesday, March 13, 2013

Optimal Enum to String Convertion

public static String ConvertToString(this Enum eff) {
     return Enum.GetName(eff.GetType(), eff);
}


No comments:

Post a Comment