Optimal Enum to String Convertion

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


Comments

Popular posts from this blog

C# code to Check IE Proxy Settings

Convert XElement to DataTable