2
Answers

Query on collections

Animesh Mandal

Animesh Mandal

16y
2k
1

When an instance of an object of a class, say Foo, is inserted in a collection like List<T> or Dictionary<TKey, TValue>, do collections create new instance of  Foo and inserts it or they refer to same instance created before inserting into collections?


Answers (2)