public static ComparableList <T> Of(IEnumerable <T> source) { var list = new ComparableList <T>(); list.AddRange(source); return(list); }
public bool Equals(ComparableList <T> other) { return(other?.OrderBy(t => t).SequenceEqual(this.OrderBy(t => t)) ?? false); }