コード例 #1
0
        public int CompareTo(AssignmentListBoxItemContent other)
        {
            if (other == null)
            {
                return(0);
            }

            return(string.Compare(tbControl.Text, other.tbControl.Text, StringComparison.Ordinal));
        }
コード例 #2
0
        public int CompareTo(object obj)
        {
            AssignmentListBoxItemContent content = obj as AssignmentListBoxItemContent;

            if (content != null)
            {
                return(CompareTo(content));
            }
            else
            {
                return(0);
            }
        }