How to declare a static dictionary object inside a static class? I tried
public static class ErrorCode
{
public const IDictionary<string , string > ErrorCodeDic
=new Dictionary<string, string>()
{
{"1","User name or password problem"}
};
}
But the compiler complains that "A const field of a reference type other than string can only be initialized with null".