Listing D
public int CompareTo (object obj) {
   Dinosaur dino = (Dinosaur) obj;
   return this.Name.CompareTo (dino.Name);
}