public int CompareTo(AssignmentListBoxItemContent other) { if (other == null) { return(0); } return(string.Compare(tbControl.Text, other.tbControl.Text, StringComparison.Ordinal)); }
public int CompareTo(object obj) { AssignmentListBoxItemContent content = obj as AssignmentListBoxItemContent; if (content != null) { return(CompareTo(content)); } else { return(0); } }