30 references to GetValueRefOrAddDefault
Aspire.Dashboard (4)
Model\SpanDetailsViewModel.cs (1)
64ref var trace = ref CollectionsMarshal.GetValueRefOrAddDefault(traceCache, traceId, out _);
Model\TraceHelpers.cs (1)
29ref var childSpans = ref CollectionsMarshal.GetValueRefOrAddDefault(spanLookup, parentSpan, out _);
Otlp\Model\OtlpSpan.cs (2)
264ref var count = ref CollectionsMarshal.GetValueRefOrAddDefault(attributeValues, values.Value1, out _); 269ref var count = ref CollectionsMarshal.GetValueRefOrAddDefault(attributeValues, values.Value2, out _);
ILCompiler.Compiler (1)
Compiler\DependencyAnalysis\DehydratedDataNode.cs (1)
75CollectionsMarshal.GetValueRefOrAddDefault(relocOccurences, target, out _)++;
Microsoft.AspNetCore.Components (1)
src\aspnetcore\src\Components\Shared\src\QueryParameterValueSupplier.cs (1)
26ref var values = ref CollectionsMarshal.GetValueRefOrAddDefault(_queryParameterValuesByName, decodedName, out _);
Microsoft.AspNetCore.Components.QuickGrid (1)
src\aspnetcore\src\Components\Shared\src\QueryParameterValueSupplier.cs (1)
26ref var values = ref CollectionsMarshal.GetValueRefOrAddDefault(_queryParameterValuesByName, decodedName, out _);
System.Linq (3)
System\Linq\AggregateBy.cs (2)
126ref TAccumulate? acc = ref CollectionsMarshal.GetValueRefOrAddDefault(dict, key, out bool exists); 158ref TAccumulate? acc = ref CollectionsMarshal.GetValueRefOrAddDefault(dict, key, out bool exists);
System\Linq\CountBy.cs (1)
63ref int currentCount = ref CollectionsMarshal.GetValueRefOrAddDefault(countsBy, key, out _);
System.Linq.AsyncEnumerable (4)
System\Linq\AggregateBy.cs (2)
72ref TAccumulate? acc = ref CollectionsMarshal.GetValueRefOrAddDefault(dict, key, out bool exists); 210ref TAccumulate? acc = ref CollectionsMarshal.GetValueRefOrAddDefault(dict, key, out bool exists);
System\Linq\CountBy.cs (2)
49ref int currentCount = ref CollectionsMarshal.GetValueRefOrAddDefault(countsBy, key, out _); 100ref int currentCount = ref CollectionsMarshal.GetValueRefOrAddDefault(countsBy, key, out _);
System.Net.Http (2)
System\Net\Http\Headers\HttpHeaders.cs (2)
1580return ref CollectionsMarshal.GetValueRefOrAddDefault(dictionary, key, out _); 1586ref object? value = ref CollectionsMarshal.GetValueRefOrAddDefault(dictionary, key, out _);
System.Net.NameResolution (1)
System\Net\DnsResolverPal.Managed.cs (1)
216ref 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)
3062ref EventMetadata newEventMetadata = ref CollectionsMarshal.GetValueRefOrAddDefault(eventData, 0, out _); 3525ref EventMetadata metadata = ref CollectionsMarshal.GetValueRefOrAddDefault(eventData, eventAttribute.EventId, out _);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (1)
1493ref WeakGCHandle<NativeObjectWrapper> rcwEntry = ref CollectionsMarshal.GetValueRefOrAddDefault(_cache, comPointer, out bool exists);
System.Reflection.Metadata (1)
System\Reflection\Metadata\Ecma335\BlobDictionary.cs (1)
30ref var entry = ref CollectionsMarshal.GetValueRefOrAddDefault(_dictionary, dictionaryKey, out exists);
System.Text.Json (3)
System\Text\Json\Document\JsonElement.cs (2)
1373ref ValueQueue<JsonElement> values = ref CollectionsMarshal.GetValueRefOrAddDefault(properties2, prop2.Name, out bool _); 1388ref ValueQueue<JsonElement> values = ref CollectionsMarshal.GetValueRefOrAddDefault(properties2, prop.Name, out bool exists);
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
561ref string[]? pathToSchema = ref CollectionsMarshal.GetValueRefOrAddDefault(_generated, key, out bool exists);
System.Text.RegularExpressions (4)
System\Text\RegularExpressions\RegexWriter.cs (1)
181ref int i = ref CollectionsMarshal.GetValueRefOrAddDefault(_stringTable, str, out bool exists);
System\Text\RegularExpressions\Symbolic\CharSetSolver.cs (1)
381ref BDD? bdd = ref CollectionsMarshal.GetValueRefOrAddDefault(_bddCache, (ordinal, one, zero), out _);
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (1)
339ref BDD? result = ref CollectionsMarshal.GetValueRefOrAddDefault(_setBddCache, set, out _);
System\Text\RegularExpressions\Symbolic\SymbolicRegexBuilder.cs (1)
254ref SymbolicRegexNode<TSet>? result = ref CollectionsMarshal.GetValueRefOrAddDefault(_singletonCache, set, out _);