6
Answers

console application session variable

rich

rich

14y
11.5k
1

What would you do in console application to save a variable or object in this process to be accessible in every class like session variable in asp.net?

Something like below and I want the BAArray to be accessable in every class libry without passing the arry.

How can I do that in console app? In asp.net I will just put that in the session variable.

 

            ArrayList BAArray = new ArrayList();

            for (int i = 0; i < 5; i++)

            {

                BAArray.Add(new BAObj());

Answers (6)