Connecting Tech Pros Worldwide Help | Site Map

How to pass a list of objects to a new window by reference

Newbie
 
Join Date: Oct 2008
Posts: 2
#1: Oct 26 '08
I'm trying to send a list of objects to a new window by reference, but get a compiler error saying my new window "does not contain a constructor that takes '1' arguments"

Here's my constructor in the new window:
private Options(ref List<Data> _DataList)

And the code that calls it:
Options OptionsWindow = new Options(ref DataList);

What's going on? How do I pass a list of objects to a new window?
Newbie
 
Join Date: Oct 2008
Posts: 2
#2: Oct 27 '08

re: How to pass a list of objects to a new window by reference


Figured it out...... hope I didn't waste anyone's time on this one.
Reply