Can I write something like
public struct ID
public SerialPort port;
public int siteNumber;<span style="white-space:pre"> // limited to [0, 31]
to ask Attribute to check the data range? Does .NET provide predefined attribute to do such thing?
Or, who can give some suggestions to do such check/limit ?
Thank you very much!
View Complete Post