Beispiel #1
0
        public ImmutableSortedDictionary <T, T> ImmutableSortedDictionary()
        {
            ImmutableSortedDictionary <T, T> immutableSortedDictionary = ImmutableSortedDictionary <T, T> .Empty;

            foreach (T value in _uniqueValues)
            {
                immutableSortedDictionary = immutableSortedDictionary.Add(value, value);
            }
            return(immutableSortedDictionary.Clear());
        }
 protected override ImmutableSortedDictionary <TKey, TValue> Clear(ImmutableSortedDictionary <TKey, TValue> values, ISerializationContext context)
 => values.Clear();