Example #1
0
 public ConstantExpression(String s)
 {
     if (s == "true")
         value = new OptionBool("", true);
     else if (s == "false")
         value = new OptionBool("", false);
     else
         try
         {
             value = new OptionInt("", int.Parse(s), int.MinValue, int.MaxValue, sizeof(int));
         }
         catch (FormatException)
         {
             throw new ArgumentException();
         }
 }
Example #2
0
 public void setOption(int n, Option opt)
 {
     OptionsArray[n] = opt;
 }