INNER CODE UNIT · C#

KeyValuePairComparer

dotnetbio/bio · Source/Bio.Core/AATree.cs:651

        private class KeyValuePairComparer : IComparer<KeyValuePair<TKey, TValue>>
        {
            public IComparer<TKey> KeyComparer { get; private set; }

            public KeyValuePairComparer(IComparer<TKey> keyComparer)
            {
                this.KeyComparer = keyComparer;
            }

            public int Compare(KeyValuePair<TKey, TValue> x, KeyValuePair<TKey, TValue> y)
            {
                return this.KeyComparer.Compare(x.Key, y.Key);
            }
        }
        #endregion

        #region Member variables
        private AATree<KeyValuePair<TKey, TValue>> internalTree;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…