30 references to GetValueRefOrAddDefault
Aspire.Dashboard (4)
Model\SpanDetailsViewModel.cs (1)
64
ref var trace = ref CollectionsMarshal.
GetValueRefOrAddDefault
(traceCache, traceId, out _);
Model\TraceHelpers.cs (1)
29
ref var childSpans = ref CollectionsMarshal.
GetValueRefOrAddDefault
(spanLookup, parentSpan, out _);
Otlp\Model\OtlpSpan.cs (2)
264
ref var count = ref CollectionsMarshal.
GetValueRefOrAddDefault
(attributeValues, values.Value1, out _);
269
ref var count = ref CollectionsMarshal.
GetValueRefOrAddDefault
(attributeValues, values.Value2, out _);
ILCompiler.Compiler (1)
Compiler\DependencyAnalysis\DehydratedDataNode.cs (1)
75
CollectionsMarshal.
GetValueRefOrAddDefault
(relocOccurences, target, out _)++;
Microsoft.AspNetCore.Components (1)
src\aspnetcore\src\Components\Shared\src\QueryParameterValueSupplier.cs (1)
26
ref var values = ref CollectionsMarshal.
GetValueRefOrAddDefault
(_queryParameterValuesByName, decodedName, out _);
Microsoft.AspNetCore.Components.QuickGrid (1)
src\aspnetcore\src\Components\Shared\src\QueryParameterValueSupplier.cs (1)
26
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)
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.Net.Http (2)
System\Net\Http\Headers\HttpHeaders.cs (2)
1580
return ref CollectionsMarshal.
GetValueRefOrAddDefault
(dictionary, key, out _);
1586
ref object? value = ref CollectionsMarshal.
GetValueRefOrAddDefault
(dictionary, key, out _);
System.Net.NameResolution (1)
System\Net\DnsResolverPal.Managed.cs (1)
216
ref List<AddressRecord>? list = ref CollectionsMarshal.
GetValueRefOrAddDefault
(glue, owner, out _);
System.Private.CoreLib (5)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (2)
959
/// <inheritdoc cref="CollectionsMarshal.
GetValueRefOrAddDefault
{TKey, TValue}(Dictionary{TKey, TValue}, TKey, out bool)"/>
1070
/// <inheritdoc cref="CollectionsMarshal.
GetValueRefOrAddDefault
{TKey, TValue}(Dictionary{TKey, TValue}, TKey, out bool)"/>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (2)
3062
ref EventMetadata newEventMetadata = ref CollectionsMarshal.
GetValueRefOrAddDefault
(eventData, 0, out _);
3525
ref EventMetadata metadata = ref CollectionsMarshal.
GetValueRefOrAddDefault
(eventData, eventAttribute.EventId, out _);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (1)
1493
ref WeakGCHandle<NativeObjectWrapper> 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)
1373
ref ValueQueue<JsonElement> values = ref CollectionsMarshal.
GetValueRefOrAddDefault
(properties2, prop2.Name, out bool _);
1388
ref ValueQueue<JsonElement> values = ref CollectionsMarshal.
GetValueRefOrAddDefault
(properties2, prop.Name, out bool exists);
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
561
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)
381
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)
254
ref SymbolicRegexNode<TSet>? result = ref CollectionsMarshal.
GetValueRefOrAddDefault
(_singletonCache, set, out _);