public int CompareTo(MFilesUserGroup other) { if (other == null) { return(1); } return(GroupId.CompareTo(other.GroupId)); }
public int CompareTo(object obj) { if (obj == null || obj.GetType() != GetType()) { throw new ArgumentException("Different types comparison"); } return(GroupId.CompareTo((obj as Group).GroupId)); }