7 references to TryUpdate
ILCompiler.ReadyToRun (1)
Compiler\DependencyAnalysis\ReadyToRun\ModuleTokenResolver.cs (1)
303
} while (dictionary.
TryUpdate
(tse, token, oldToken));
Microsoft.CodeAnalysis.CSharp (1)
Compilation\CSharpCompilation.cs (1)
2886
_lazyImportInfos.
TryUpdate
(new ImportInfo(syntax.SyntaxTree, syntax.Kind(), syntax.Span), dependencies, default);
Microsoft.Extensions.Caching.Memory (2)
MemoryCache.cs (2)
833
=> key is string s ? _stringEntries.
TryUpdate
(s, entry, comparison) : _nonStringEntries.
TryUpdate
(key, entry, comparison);
System.Net.Http (2)
System\Net\Http\Metrics\MetricsHandler.cs (1)
107
if (_counts.
TryUpdate
(key, currentValue - 1, currentValue))
System\Net\Http\SocketsHttpHandler\Metrics\SocketsHttpHandlerMetrics.cs (1)
112
if (_counts.
TryUpdate
(key, currentValue - 1, currentValue))
System.Xaml (1)
System\Xaml\XamlSchemaContext.cs (1)
1229
if (dictionary.
TryUpdate
(key, value, comparand))