예제 #1
0
        public NamedDoubleLinkedList <T> FromList(NamedDoubleLinkedList <T> source)
        {
            var list = (NamedDoubleLinkedList <T>)base.Clone();

            list.Name = source.Name;

            return(list);
        }
예제 #2
0
        public int CompareTo(NamedDoubleLinkedList <T> other)
        {
            if (ReferenceEquals(null, other))
            {
                return(1);
            }

            return(ReferenceEquals(this, other) ? 0 : string.CompareOrdinal(Name, other.Name));
        }
예제 #3
0
 public static int Compare(NamedDoubleLinkedList <T> list1, NamedDoubleLinkedList <T> list2)
 {
     return(string.CompareOrdinal(list1?.Name, list2?.Name));
 }