Created
November 19, 2012 05:57
Revisions
-
NikkiBuck created this gist
Nov 19, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ public int CompareTo(object obj) { if (obj is Book) { Book otherBook = (Book)obj; if (this.Title != otherBook.Title) { return this.Title.CompareTo(otherBook.Title); } } else throw new ArgumentException("One or both objects are not books."); }