using System; using System.Collections.Generic; namespace ObservableCollections.Tests { public struct ViewContainer : IEquatable { public ViewContainer(T value) { Value = value; } public T Value { get; } public static implicit operator ViewContainer(T value) => new ViewContainer(value); public override int GetHashCode() { return Value.GetHashCode(); } public bool Equals(T other) { return EqualityComparer.Default.Equals(Value, other); } } }