I would like to implement an application that uses a collection - specifically - a dictionary .
I want to instantiate the dictionary with block level scope and have all methods have access to the items in the dictionary.
I am running into some tricky syntax issues - and i was hoping that the combined collective genius of all the programmers here could make really quick work of this problem for me .
passing a dictionary by reference is turning out to be cool .
AlanPosted Nov 21, 2008, 7:05 AM
I'm probably missing something here but to enable all methods in a particular class to have access to a Dictionary, just declare it as a private field of that class.
If you want all methods in the entire application to have access to it, declare it as an internal static field of some global class.