1 write to Attribute
Microsoft.AspNetCore.Components (1)
CascadingParameterInfo.cs (1)
28
Attribute
= attribute;
14 references to Attribute
Microsoft.AspNetCore.Components (5)
CascadingValue.cs (1)
131
if (parameterInfo.
Attribute
is not CascadingParameterAttribute cascadingParameterAttribute || !parameterInfo.PropertyType.IsAssignableFrom(typeof(TValue)))
CascadingValueSource.cs (1)
141
if (parameterInfo.
Attribute
is not CascadingParameterAttribute cascadingParameterAttribute || !parameterInfo.PropertyType.IsAssignableFrom(typeof(TValue)))
Routing\SupplyParameterFromQueryValueProvider.cs (2)
24
=> parameterInfo.
Attribute
is SupplyParameterFromQueryAttribute;
30
var attribute = (SupplyParameterFromQueryAttribute)parameterInfo.
Attribute
; // Must be a valid cast because we check in CanSupplyValue
SupplyParameterFromPersistentComponentStateValueProvider.cs (1)
30
=> parameterInfo.
Attribute
is SupplyParameterFromPersistentComponentStateAttribute;
Microsoft.AspNetCore.Components.Tests (3)
CascadingParameterStateTest.cs (1)
487
=> parameterInfo.
Attribute
is SupplyParameterWithSingleDeliveryAttribute;
CascadingParameterTest.cs (2)
886
=> parameterInfo.
Attribute
is SingleDeliveryCascadingParameterAttribute;
1046
if (parameterInfo.
Attribute
is not TAttribute ||
Microsoft.AspNetCore.Components.Web (6)
Forms\Mapping\SupplyParameterFromFormValueProvider.cs (6)
35
if (parameterInfo.
Attribute
is CascadingParameterAttribute && parameterInfo.PropertyType == typeof(FormMappingContext))
41
if (_formValueMapper is not null && parameterInfo.
Attribute
is SupplyParameterFromFormAttribute supplyParameterFromFormAttribute)
52
if (parameterInfo.
Attribute
is CascadingParameterAttribute && parameterInfo.PropertyType == typeof(FormMappingContext))
58
if (_formValueMapper is { } valueMapper && parameterInfo.
Attribute
is SupplyParameterFromFormAttribute)
63
throw new InvalidOperationException($"Received an unexpected attribute type {parameterInfo.
Attribute
.GetType()}");
76
var attribute = (SupplyParameterFromFormAttribute)parameterInfo.
Attribute
; // Must be a valid cast because we check in CanSupplyValue