You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generally speaking, one should use RequiredAttribute if a value should not be allowed to be null. (Higher-level frameworks like ASP.NET Core will additionally use C# nullability annotations to infer RequiredAttribute.)
The text was updated successfully, but these errors were encountered:
Specifically:
EmailValidation/EmailValidation/EmailAttribute.cs
Lines 86 to 87 in 643a8e3
EmailValidation/EmailValidation/EmailAttribute.cs
Line 105 in 643a8e3
Most (all?) attributes in
System.ComponentModel.DataAnnotations
of a similar nature toEmailAttribute
consider null to be valid.Examples:
Generally speaking, one should use
RequiredAttribute
if a value should not be allowed to be null. (Higher-level frameworks like ASP.NET Core will additionally use C# nullability annotations to inferRequiredAttribute
.)The text was updated successfully, but these errors were encountered: