c# - Behavior of ObservableCollection(IEnumerable) constructor -
according msdn there overload observablecollection constructor can pass ienumerable. according short msdn page make "copy" of ienumerable.
how determine how behave? "copy" totally independent of original or changes made ienumerable (such linq query) reflected automatically in observablecollection?
this constructor walks through items in ienumerable
, adds each 1 observablecollection
. once finished new observablecollection
has nothing more ienumerable
(except if dealing collection of reference types observablecollection
hold references same objects supplied ienumerable
).
Comments
Post a Comment