// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. #if NO_HASHSET using System; using System.Collections.Generic; namespace System.Reactive { class HashSet { private Dictionary _set; public HashSet(IEqualityComparer comparer) { _set = new Dictionary(comparer); } public bool Add(T value) { if (_set.ContainsKey(value)) return false; _set[value] = null; return true; } } } #endif