Menu

[solved] – Question 7794

Hi,
this is for a project. i have to make a console application and need to work with a List<String> to hole values for the lifetime of the console application. I have initialised it in the class with the declaration “List<String> myList = new List<String>”. this is done at the constructor level and when i need to use it in a method or pass it to another method of another class and use it there, it is not initialised and is null and as a result, any add gives me an error. please help me as i need a solution to it in the next hour or so or my assignment would be screwed. Please help soon. appreciate it. Thanks and Regards

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *