using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.Specialized;
using System.Configuration;
I am receiving this error
cannot declare instance members in a static class
when writing a Static class. Any idea how to solve it keeping the class static if possible? Thanks
namespace XXX.Helpers
{
public static class Utility
{
public static string GetConfiguration(string section, string key)
{
NameValueCollection mySection = (NameValueCollection)ConfigurationManager.GetSection(section);
return mySection[key];
}
}
}