2008-09-12 Jb Evain <jbevain@novell.com>
authorJb Evain <jbevain@gmail.com>
Fri, 12 Sep 2008 18:34:13 +0000 (18:34 -0000)
committerJb Evain <jbevain@gmail.com>
Fri, 12 Sep 2008 18:34:13 +0000 (18:34 -0000)
commit3a847b4c67bd4274f99cba6639225092224a6abf
treed737ee97e35fe17d330c7a5feb1a3e92e0f1e2af
parent8acac8067d17ce267ab5d0f33239bd40a56b517b
2008-09-12  Jb Evain  <jbevain@novell.com>

* HashSet.cs (.ctor (IEnumerable<T>,*)): only get the count of the
enumerable if the source collection implements ICollection<T>, so that
we only iterate once over the source collection.

svn path=/trunk/mcs/; revision=112897
mcs/class/System.Core/System.Collections.Generic/ChangeLog
mcs/class/System.Core/System.Collections.Generic/HashSet.cs