How to make a global list in c#
4829
27-Dec-2013
I
have three windows forms in my project, and I have an object class. How can I
make a list of those objects that will be available for all three forms to use?
Anonymous User
27-Dec-2013You could create a class containing an instance of your object:
Then you can access it from your form
MyClass.MyList = new List<string>();
Obviously string will be replaced with the name of your object.