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)
881if (parameters.TryGetValue<string>(nameof(Message), out var message))
Microsoft.AspNetCore.Components.Tests (6)
CascadingParameterTest.cs (1)
949lastParameterView.TryGetValue<object>("anything", out _);
ParameterViewTest.cs (4)
120var didFind = parameters.TryGetValue<string>("nonexisting entry", out var value); 138var didFind = parameters.TryGetValue<string>("my entry", out var value); 234parameters.TryGetValue<bool>("my entry", out var value); 340var ex = Assert.Throws<InvalidOperationException>(() => parameterView.TryGetValue<object>("anything", out _));
RendererTest.cs (1)
4462var ex = Assert.Throws<InvalidOperationException>(() => parameterView.TryGetValue<object>("anything", out _));