コード例 #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());
        }
コード例 #2
0
 protected override ImmutableSortedDictionary <TKey, TValue> Clear(ImmutableSortedDictionary <TKey, TValue> values, ISerializationContext context)
 => values.Clear();