31 references to GetValueRefOrAddDefault
Aspire.Dashboard (9)
Components\Pages\TraceDetail.razor.cs (1)
341
ref var trace = ref CollectionsMarshal.
GetValueRefOrAddDefault
(traceCache, traceId, out _);
Otlp\Model\OtlpApplication.cs (1)
74
ref var instrumentRef = ref CollectionsMarshal.
GetValueRefOrAddDefault
(_instruments, instrumentKey, out _);
Otlp\Model\OtlpHelpers.cs (1)
456
ref var scopeRef = ref CollectionsMarshal.
GetValueRefOrAddDefault
(scopes, name, out _);
Otlp\Model\OtlpInstrument.cs (1)
80
ref var values = ref CollectionsMarshal.
GetValueRefOrAddDefault
(KnownAttributeValues, key, out _);
Otlp\Storage\TelemetryRepository.cs (5)
375
ref var count = ref CollectionsMarshal.
GetValueRefOrAddDefault
(_applicationUnviewedErrorLogs, applicationView.ApplicationKey, out _);
720
ref var count = ref CollectionsMarshal.
GetValueRefOrAddDefault
(attributesValues, values.Value1, out _);
726
ref var count = ref CollectionsMarshal.
GetValueRefOrAddDefault
(attributesValues, values.Value2, out _);
754
ref var count = ref CollectionsMarshal.
GetValueRefOrAddDefault
(attributesValues, value, out _);
1285
ref var values = ref CollectionsMarshal.
GetValueRefOrAddDefault
(allKnownAttributes, knownAttributeValues.Key, out _);
Microsoft.AspNetCore.Components (1)
Routing\QueryParameterValueSupplier.cs (1)
25
ref var values = ref CollectionsMarshal.
GetValueRefOrAddDefault
(_queryParameterValuesByName, decodedName, out _);
Shared (1)
JsonSchemaExporter\JsonSchemaExporter.cs (1)
522
ref string[]? pathToSchema = ref CollectionsMarshal.
GetValueRefOrAddDefault
(_generated, key, out bool exists);
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)
72
ref TAccumulate? acc = ref CollectionsMarshal.
GetValueRefOrAddDefault
(dict, key, out bool exists);
210
ref TAccumulate? acc = ref CollectionsMarshal.
GetValueRefOrAddDefault
(dict, key, out bool exists);
System\Linq\CountBy.cs (2)
49
ref int currentCount = ref CollectionsMarshal.
GetValueRefOrAddDefault
(countsBy, key, out _);
100
ref int currentCount = ref CollectionsMarshal.
GetValueRefOrAddDefault
(countsBy, key, out _);
System.Private.CoreLib (5)
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)"/>
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (2)
3164
ref EventMetadata newEventMetadata = ref CollectionsMarshal.
GetValueRefOrAddDefault
(eventData, 0, out _);
3512
ref EventMetadata metadata = ref CollectionsMarshal.
GetValueRefOrAddDefault
(eventData, eventAttribute.EventId, out _);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (1)
1300
ref GCHandle rcwEntry = ref CollectionsMarshal.
GetValueRefOrAddDefault
(_cache, comPointer, out bool exists);
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)
1372
ref ValueQueue<JsonElement> values = ref CollectionsMarshal.
GetValueRefOrAddDefault
(properties2, prop2.Name, out bool _);
1387
ref ValueQueue<JsonElement> values = ref CollectionsMarshal.
GetValueRefOrAddDefault
(properties2, prop.Name, out bool exists);
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
443
ref string[]? pathToSchema = ref CollectionsMarshal.
GetValueRefOrAddDefault
(_generated, key, out bool exists);
System.Text.RegularExpressions (4)
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 _);
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (1)
339
ref BDD? result = ref CollectionsMarshal.
GetValueRefOrAddDefault
(_setBddCache, set, out _);
System\Text\RegularExpressions\Symbolic\SymbolicRegexBuilder.cs (1)
263
ref SymbolicRegexNode<TSet>? result = ref CollectionsMarshal.
GetValueRefOrAddDefault
(_singletonCache, set, out _);