Hi.
i have a collection of object. when i add some object on that collection. will it save that object itself or save its reference.
List<Student> myList;
Student std1 = new Student();
Student std2 = new Student();
myList.Add(std1);
myList.Add(std2);
myList will contain what? duplicate copy of std1 and std2 or reference of these two objects?
and if this List resides on some remote location and i access it via wcf service. then i add objects in this list. what will happen. Those objects will be added by MBV or MBR?
actually i have List ok and i am adding object of Student in this list..
in last I said that suppose I have this List in some Program which is on other machine. I can access that program using WCF Service. get the reference of that Program through WCF Service. and then i call Program.myList.Add(student). now will a duplicate copy will be generated on that remote machine and will be added to myList or reference will be saved?