public int CompareTo(object obj) { IFortune other = obj as IFortune; if (other == null) { throw new ArgumentException($"Object to compare must be of type {nameof(IFortune)}", nameof(obj)); } return(CompareTo(other)); }
public int CompareTo(IFortune other) { return(Message.CompareTo(other.Message)); }
public FortuneOrm(IFortune f) { Id = f.Id; Message = f.Message; }