Minor, non-functional changes

pull/21/head
David Hall 2018-08-29 12:57:08 -06:00
parent 180a010d96
commit 6237a60997
1 changed files with 2 additions and 1 deletions

View File

@ -113,7 +113,7 @@ namespace System.Collections.Generic
public HashSet(IEnumerable<T> collection, IEqualityComparer<T> comparer)
{
dict = new Dictionary<T, object>(comparer);
foreach (T elem in collection)
foreach (var elem in collection)
{
Add(elem);
}
@ -256,6 +256,7 @@ namespace System.Collections.Generic
var l = this.ToList();
foreach (var elem in l)
{
// ReSharper disable once PossibleMultipleEnumeration
if (!other.Contains(elem))
{
Remove(elem);