1 instantiation of Optional
System.Collections.Immutable (1)
System\Collections\Frozen\Integer\DenseIntegralFrozenDictionary.cs (1)
105optionalValues[int.CreateTruncating((TKeyUnderlying)(object)entry.Key) - min] = new(entry.Value, hasValue: true);
5 references to Optional
System.Collections.Immutable (5)
System\Collections\Frozen\Integer\DenseIntegralFrozenDictionary.cs (5)
97var optionalValues = new Optional<TValue>[length]; 149private sealed class WithOptionalValues<TKey, TKeyUnderlying, TValue>(TKey[] keys, TValue[] values, Optional<TValue>[] optionalValues, int minInclusive) : 156private readonly Optional<TValue>[] _optionalValues = optionalValues; 170Optional<TValue>[] optionalValues = _optionalValues; 173ref Optional<TValue> value = ref optionalValues[index];