How do I declare global variables in Visual C#?
Use the const keyword:
public const int MAXIMUM_CACHE_SIZE = 100;
Put it in a static class eg
public class Globals { public const int MAXIMUM_CACHE_SIZE = 100; }
And you have a global variable class :)