7 references to TryGetValue
Microsoft.AspNetCore.Components.Forms.Tests (5)
EditContextTest.cs (5)
305
Assert.False(editContext.Properties.
TryGetValue
(key1, out _));
310
Assert.True(editContext.Properties.
TryGetValue
(key1, out var retrievedValue1));
311
Assert.True(editContext.Properties.
TryGetValue
(key2, out var retrievedValue2));
316
Assert.False(editContext.Properties.
TryGetValue
(key3, out _));
335
Assert.False(editContext.Properties.
TryGetValue
(key, out _));
Microsoft.AspNetCore.Components.Web (2)
Forms\EditContextFieldClassExtensions.cs (1)
34
var provider = editContext.Properties.
TryGetValue
(FieldCssClassProviderKey, out var customProvider)
Forms\Mapping\EditContextFormMappingExtensions.cs (1)
27
if (context.Properties.
TryGetValue
(_key, out var result) && result is FormMappingContext mappingContext)