using System; using System.Collections.Generic; using System.Text; namespace PlatformBenchmarks { public class Fortune : IComparable, IComparable { public int Id { get; set; } public string Message { get; set; } public int CompareTo(object obj) { return CompareTo((Fortune)obj); } public int CompareTo(Fortune other) { // Performance critical, using culture insensitive comparison return String.CompareOrdinal(Message, other.Message); } } }