コード例 #1
0
 public if_(string input, if_ params_) : base(input, params_)
 {
     if (input.Length < 5)
     {
         throw new Exception();
     }
     output = null;
 }
コード例 #2
0
 public if_(Params_ ask, Params_ true_, Params_ false_, if_ parrent)
 {
     this.ask       = ask;
     ask.parrent    = this;
     this.true_     = true_;
     true_.parrent  = this;
     this.false_    = false_;
     false_.parrent = this;
     this.parrent   = parrent;
     output         = "(" + ask.Value + ")?(" + true_.Value + "):(" + false_.Value + ")";
 }
コード例 #3
0
ファイル: Value_.cs プロジェクト: igorek240101/MathLogic
 public Value_(string input, if_ params_) : base(input, params_)
 {
     if (input.Length == 1 && (input[0] == '0' || input[0] == '1' || (input[0] >= 'A' && input[0] <= 'Z') || (input[0] >= 'a' && input[0] <= 'z')))
     {
         ;
     }
     else
     {
         throw new Exception("Недопустимый аргумент");
     }
 }
コード例 #4
0
ファイル: Value_.cs プロジェクト: igorek240101/MathLogic
 public override Params_ Clone(if_ parrent)
 {
     return(new Value_(input, parrent));
 }
コード例 #5
0
 public Params_(string input, if_ params_)
 {
     this.input = input;
     parrent    = params_;
 }