2 writes to Name
Microsoft.AspNetCore.Components (2)
CascadingValue.cs (2)
62
Name
= null;
78
Name
= (string)parameter.Value;
5 references to Name
Microsoft.AspNetCore.Components (5)
CascadingValue.cs (5)
76
else if (parameter.Name.Equals(nameof(
Name
), StringComparison.OrdinalIgnoreCase))
79
if (string.IsNullOrEmpty(
Name
))
81
throw new ArgumentException($"The parameter '{nameof(
Name
)}' for component '{nameof(CascadingValue<TValue>)}' does not allow null or empty values.");
139
return (requestedName == null &&
Name
== null) // Match on type alone
140
|| string.Equals(requestedName,
Name
, StringComparison.OrdinalIgnoreCase); // Also match on name