📜  属性装饰器要求字符串 c# 代码示例的电子邮件格式

📅  最后修改于: 2022-03-11 14:48:40.641000             🧑  作者: Mango

代码示例1
using System.ComponentModel.DataAnnotations;

[EmailAddress(ErrorMessage = "Invalid Email Address")]
public string Email { get; set; }