예제 #1
0
        public Library()
        {
            IComparer <Book> comparer = new BookComparer();

            books = new SortedSet <Book>(comparer);
        }
예제 #2
0
        public Library()
        {
            BookComparer comparer = new BookComparer();

            books = new SortedList(comparer);
        }
예제 #3
0
        public Library(IEnumerable <Book> books)
        {
            IComparer <Book> comparer = new BookComparer();

            this.books = new SortedSet <Book>(books, comparer);
        }