24 references to GetValueRefOrAddDefault
Aspire.Dashboard (6)
Components\Pages\TraceDetail.razor.cs (1)
258
ref var trace = ref CollectionsMarshal.
GetValueRefOrAddDefault
(traceCache, traceId, out _);
Otlp\Model\OtlpApplication.cs (2)
63
ref var instrumentRef = ref CollectionsMarshal.
GetValueRefOrAddDefault
(_instruments, instrumentKey, out _);
195
ref var meter = ref CollectionsMarshal.
GetValueRefOrAddDefault
(_meters, scope.Name, out _);
Otlp\Storage\TelemetryRepository.cs (3)
298
ref var scopeRef = ref CollectionsMarshal.
GetValueRefOrAddDefault
(scopes, name, out _);
356
ref var count = ref CollectionsMarshal.
GetValueRefOrAddDefault
(_applicationUnviewedErrorLogs, applicationView.ApplicationKey, out _);
724
ref var count = ref CollectionsMarshal.
GetValueRefOrAddDefault
(attributesValues, value, out _);
Microsoft.AspNetCore.Components (1)
Routing\QueryParameterValueSupplier.cs (1)
25
ref var values = ref CollectionsMarshal.
GetValueRefOrAddDefault
(_queryParameterValuesByName, decodedName, out _);
System.Linq (3)
System\Linq\AggregateBy.cs (2)
126
ref TAccumulate? acc = ref CollectionsMarshal.
GetValueRefOrAddDefault
(dict, key, out bool exists);
158
ref TAccumulate? acc = ref CollectionsMarshal.
GetValueRefOrAddDefault
(dict, key, out bool exists);
System\Linq\CountBy.cs (1)
63
ref int currentCount = ref CollectionsMarshal.
GetValueRefOrAddDefault
(countsBy, key, out _);
System.Linq.AsyncEnumerable (4)
System\Linq\AggregateBy.cs (2)
71
ref TAccumulate? acc = ref CollectionsMarshal.
GetValueRefOrAddDefault
(dict, key, out bool exists);
217
ref TAccumulate? acc = ref CollectionsMarshal.
GetValueRefOrAddDefault
(dict, key, out bool exists);
System\Linq\CountBy.cs (2)
48
ref int currentCount = ref CollectionsMarshal.
GetValueRefOrAddDefault
(countsBy, key, out _);
103
ref int currentCount = ref CollectionsMarshal.
GetValueRefOrAddDefault
(countsBy, key, out _);
System.Net.Http (2)
System\Net\Http\Headers\HttpHeaders.cs (2)
1500
return ref CollectionsMarshal.
GetValueRefOrAddDefault
(dictionary, key, out _);
1506
ref object? value = ref CollectionsMarshal.
GetValueRefOrAddDefault
(dictionary, key, out _);
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (2)
958
/// <inheritdoc cref="CollectionsMarshal.
GetValueRefOrAddDefault
{TKey, TValue}(Dictionary{TKey, TValue}, TKey, out bool)"/>
1069
/// <inheritdoc cref="CollectionsMarshal.
GetValueRefOrAddDefault
{TKey, TValue}(Dictionary{TKey, TValue}, TKey, out bool)"/>
System.Reflection.Metadata (1)
System\Reflection\Metadata\Ecma335\BlobDictionary.cs (1)
30
ref var entry = ref CollectionsMarshal.
GetValueRefOrAddDefault
(_dictionary, dictionaryKey, out exists);
System.Text.Json (3)
System\Text\Json\Document\JsonElement.cs (2)
1378
ref ValueQueue<JsonElement> values = ref CollectionsMarshal.
GetValueRefOrAddDefault
(properties2, prop2.Name, out bool _);
1393
ref ValueQueue<JsonElement> values = ref CollectionsMarshal.
GetValueRefOrAddDefault
(properties2, prop.Name, out bool exists);
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
440
ref string[]? pathToSchema = ref CollectionsMarshal.
GetValueRefOrAddDefault
(_generated, key, out bool exists);
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\RegexWriter.cs (1)
181
ref int i = ref CollectionsMarshal.
GetValueRefOrAddDefault
(_stringTable, str, out bool exists);
System\Text\RegularExpressions\Symbolic\CharSetSolver.cs (1)
390
ref BDD? bdd = ref CollectionsMarshal.
GetValueRefOrAddDefault
(_bddCache, (ordinal, one, zero), out _);