Is there a way to define a constant for the entire namespace, not just inside the class? For example:
namespace MyNamespace { public const string MY_CONST = "Test"; static class Program { } }
Gives a compilation error as follows:
Expected class, delegate, enumeration, interface, or structure
c # namespaces const
pm_2 May 12 '10 at 11:30 a.m. 2010-05-12 11:30
source share