Пример #1
0
        public static ComparableList <T> Of(IEnumerable <T> source)
        {
            var list = new ComparableList <T>();

            list.AddRange(source);
            return(list);
        }
Пример #2
0
 public bool Equals(ComparableList <T> other)
 {
     return(other?.OrderBy(t => t).SequenceEqual(this.OrderBy(t => t)) ?? false);
 }