Optimal Enum to String Convertion

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


Comments

Popular posts from this blog

Convert XElement to DataTable

Enable mouse scroll-wheel in VB6

C# code to Check IE Proxy Settings