예제 #1
0
 public IEnumerator <TV> GetEnumerator()
 {
     return(BTreeDictionaryExtensions
            .Enumerate(_underlying, _range)
            .Select(_ => _.Value)
            .GetEnumerator());
 }
예제 #2
0
        public void CopyTo(
            TV[] array,
            int arrayIndex)
        {
            var enumerable = BTreeDictionaryExtensions
                             .Enumerate(_underlying, _range)
                             .GetEnumerator();

            while (enumerable.MoveNext() && arrayIndex < array.Length)
            {
                if (arrayIndex >= 0)
                {
                    array[arrayIndex] = enumerable.Current.Value;
                }

                arrayIndex++;
            }
        }
예제 #3
0
 public bool Contains(TV value)
 {
     return(BTreeDictionaryExtensions
            .Enumerate(_underlying, _range)
            .Any(kvp => Equals(kvp.Value, value)));
 }