我有一些网页表单,用户应该输入端口号。当然,最适合端口号的类型是ushort。我使用RangeAttribute来验证端口号和一些错误消息。 [Required(ErrorMessage = "The field is required")][Range(1, ushort.MaxValue, ErrorMessage = "Invalid value")]
public ushort Port { get; set; } 只有当我输入从0到65535的值时,本地化才能正确工作。因此,只有一个
:xsd\:float "The allowed value-type for this CV term:xsd\:float "The allowed value-type for this CV term:xsd\:float "The allowed value-type for this CV term:xsd\:float "The allowed value-type for this CV term:xsd\:int "The allowed valu