c# - How to specify a min but no max decimal using the range data annotation attribute? -


I would like to specify that the value should be a decimal area> = 0, but I really do not want to apply A maximum value

Even what I have so far ... I'm not sure what is the right way to do this. [class (typical), "0", "??"] public decimal value {get; set;}

about something like this:

  [range (0.0, double.maxvalue)]  

You should do what you want and you can avoid using the wire.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -