Kizspy | Question: 47
(Choose 1 answer)
To force clients to set a value, make the property nullable and set the Required attribute
A. [Required]
public decimal? Price { get; set; }
B. [RequireAttribute(0,999)]
public decimal? Price { get; set; }
C. [Required Range(0,999)]
public decimal? Price { get; set; }
D. [Required NotNull]
public decimal? Price { get; set; }
PUUVERFLOW .Com