8 references to TryGetValue
Microsoft.AspNetCore.Components (1)
ParameterView.cs (1)
100
=>
TryGetValue
<TValue>(parameterName, out TValue? result) ? result : defaultValue;
Microsoft.AspNetCore.Components.Server.Tests (1)
Circuits\CircuitHostTest.cs (1)
881
if (parameters.
TryGetValue
<string>(nameof(Message), out var message))
Microsoft.AspNetCore.Components.Tests (6)
CascadingParameterTest.cs (1)
949
lastParameterView.
TryGetValue
<object>("anything", out _);
ParameterViewTest.cs (4)
120
var didFind = parameters.
TryGetValue
<string>("nonexisting entry", out var value);
138
var didFind = parameters.
TryGetValue
<string>("my entry", out var value);
234
parameters.
TryGetValue
<bool>("my entry", out var value);
340
var ex = Assert.Throws<InvalidOperationException>(() => parameterView.
TryGetValue
<object>("anything", out _));
RendererTest.cs (1)
4462
var ex = Assert.Throws<InvalidOperationException>(() => parameterView.
TryGetValue
<object>("anything", out _));