예제 #1
0
            /// <summary>
            /// Determines whether the current set and the specified collection contain the same elements.
            /// </summary>
            /// <param name="other">The collection to compare to the current set.</param>
            /// <returns>true if the current set is equal to other; otherwise, false.</returns>
            public bool SetEquals(IEnumerable <T> other)
            {
                if (object.ReferenceEquals(this, other))
                {
                    return(true);
                }

                return(ImmutableHashSet <T> .SetEquals(other, this.Origin));
            }
 /// <summary>
 /// Determines whether the current set and the specified collection contain the same elements.
 /// </summary>
 /// <param name="other">The collection to compare to the current set.</param>
 /// <returns>true if the current set is equal to other; otherwise, false.</returns>
 public bool SetEquals(IEnumerable <T> other)
 {
     return(ImmutableHashSet <T> .SetEquals(other, this.Origin));
 }