What's happening to my lists?
Posted
by byte1918
on Stack Overflow
See other posts from Stack Overflow
or by byte1918
Published on 2010-05-19T18:11:30Z
Indexed on
2010/05/19
18:20 UTC
Read the original article
Hit count: 113
Hello,
why does
List<Object> objectList; = some objects
List<Object> getList()
{
return objectList; //or return new List<Object>(objectList);
}
return a list with all items referenced to the original list's items?
Thanks.
© Stack Overflow or respective owner