mirror of https://github.com/dahall/Vanara.git
Minor, non-functional changes
parent
180a010d96
commit
6237a60997
|
@ -113,7 +113,7 @@ namespace System.Collections.Generic
|
||||||
public HashSet(IEnumerable<T> collection, IEqualityComparer<T> comparer)
|
public HashSet(IEnumerable<T> collection, IEqualityComparer<T> comparer)
|
||||||
{
|
{
|
||||||
dict = new Dictionary<T, object>(comparer);
|
dict = new Dictionary<T, object>(comparer);
|
||||||
foreach (T elem in collection)
|
foreach (var elem in collection)
|
||||||
{
|
{
|
||||||
Add(elem);
|
Add(elem);
|
||||||
}
|
}
|
||||||
|
@ -256,6 +256,7 @@ namespace System.Collections.Generic
|
||||||
var l = this.ToList();
|
var l = this.ToList();
|
||||||
foreach (var elem in l)
|
foreach (var elem in l)
|
||||||
{
|
{
|
||||||
|
// ReSharper disable once PossibleMultipleEnumeration
|
||||||
if (!other.Contains(elem))
|
if (!other.Contains(elem))
|
||||||
{
|
{
|
||||||
Remove(elem);
|
Remove(elem);
|
||||||
|
|
Loading…
Reference in New Issue