I have two classes, in one namespace:
namespace MySpace
{
public interface IMyClass1
{
void doSomething();
}
public class MyClass : IMyClass
{
void DoSomething();
}
public AnotherClass
{
void DoSomethingElse();
}
}//end namespace MySpace
What I want to be able to do is have a const value accessible to both classes in the MySpace namespace. When I put 'public const long maxVal;' just below the namespace declaration, the IDE doesn't recognize it, so it must not be allowed.
The values are for limiting a vlaue to a certain amount. can I and should I use constants It would be nice if I could make the values accessibly publiclly through the interface as well, but I'm reaching here...