Initialize the length of the ObservableCollection <T> as you initialize the List <T>
2 answers
No no. One of the constructors for ObservableCollection<T>takes List<T>, so you might think you can do this:
new ObservableCollection<int>(new List<int>(100));
But that does not work. Internally ObservableCollectioncopies the list and does not take into account any capacity properties in the list. You can verify this by looking at the constructors using the .NET Reflector .
+7