S
shapper
Hello,
I have the following class:
public class Options {
public int Minimum { get; set; }
public int Maximum { get; set; }
} // Options
And I have something like:
Options o = new Options();
o.Minimum = 20;
How can I test here if Maximum was defined or not?
Do I need to make the property nullable Int32? and check if o.Maximum
== null?
Thanks,
Miguel
I have the following class:
public class Options {
public int Minimum { get; set; }
public int Maximum { get; set; }
} // Options
And I have something like:
Options o = new Options();
o.Minimum = 20;
How can I test here if Maximum was defined or not?
Do I need to make the property nullable Int32? and check if o.Maximum
== null?
Thanks,
Miguel