Пример #1
0
            public int CompareTo(object obj)
            {
                if (null == obj)
                {
                    throw new ArgumentException();
                }

                ChordResult cfr = obj as ChordResult;

                if ((object)cfr == null)
                {
                    throw new ArgumentException();
                }

                return(MarkUtils.Compare(this.Marks, cfr.Marks));
            }
Пример #2
0
        public int CompareTo(object obj)
        {
            if (null == obj)
            {
                throw new ArgumentNullException(nameof(obj));
            }

            ChordFinderResult cfr = obj as ChordFinderResult;

            if (null == cfr)
            {
                throw new ArgumentException();
            }

            return(MarkUtils.Compare(Marks, cfr.Marks));
        }
Пример #3
0
        public int CompareTo(object obj)
        {
            if (null == obj)
            {
                throw new ArgumentNullException("obj");
            }

            ScaleFinderResult sfr = obj as ScaleFinderResult;

            if (null == sfr)
            {
                throw new ArgumentException();
            }

            return(MarkUtils.Compare(Marks, sfr.Marks, Parent.ScaleFinderOptions.Instrument.NumStrings));
        }