Its very simple but somehow not working (weird!!).
I have a List of a class type. I am adding objects to the list in a for loop. Up till adding object everything is Ok,
When populating the list, you are repeatedly adding references to the same object. To fix, move the myClassObj initialization into the loop:
myClassObj
for(int i=0;i
This will create a separate object for every element of the list.