コード例 #1
0
        public int CompareTo(PluginConfigAccessorInfo other)
        {
            if (this == other)
            {
                return(0);
            }
            int cmp = _plugin.CompareTo(other._plugin);

            if (cmp == 0)
            {
                cmp = _source.CompareTo(other.Source);
            }
            return(cmp);
        }
コード例 #2
0
        public int CompareTo(ServiceReferenceInfo other)
        {
            if (this == other)
            {
                return(0);
            }
            int cmp = _owner.CompareTo(other._owner);

            if (cmp == 0)
            {
                cmp = _propertyName.CompareTo(other.PropertyName);
            }
            return(cmp);
        }