public int CompareTo(TypeRef other) { var i = Flavor.CompareTo(other.Flavor); if (i != 0) { return(i); } return(CompareToSameBody(other)); }
public virtual int CompareTo(MemberRef other) { var i = Flavor.CompareTo(other.Flavor); if (i != 0) { return(i); } i = DefiningType.CompareTo(other.DefiningType); if (i != 0) { return(i); } i = StringComparer.Ordinal.Compare(Name, other.Name); if (i != 0) { return(i); } return(Signature.CompareTo(other.Signature)); }