INNER CODE UNIT · C#

AATree

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

    public class AATree<TKey, TValue>
    {
        #region Class to compare KeyValuePairs
        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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…