1 instantiation of Optional
System.Collections.Immutable (1)
System\Collections\Frozen\Integer\DenseIntegralFrozenDictionary.cs (1)
105
optionalValues[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)
97
var optionalValues = new
Optional
<TValue>[length];
149
private sealed class WithOptionalValues<TKey, TKeyUnderlying, TValue>(TKey[] keys, TValue[] values,
Optional
<TValue>[] optionalValues, int minInclusive) :
156
private readonly
Optional
<TValue>[] _optionalValues = optionalValues;
170
Optional
<TValue>[] optionalValues = _optionalValues;
173
ref
Optional
<TValue> value = ref optionalValues[index];