I'm writing an extension method for ObservableCollection and have read that the .Add function raises 3 property changed events per call,
So that something like this is a bad idea:
public static void AddRange<T>(this ObservableCollection<T> oc, IEnumerable<T> collection)
{
if (collection == null) { throw new ArgumentNullException("collection"); }
foreach (var i in collection) { oc.Add(i); }
}
Are there any other solutions to this?