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