コード例 #1
0
        private static Block ParseConcat(Block a, Block b, char type)
        {
            if (a == null)
            {
                return(SignBlock.Create(b, OperatorBlock.ToSignType(type)));
            }

            if (b == null)
            {
                throw new ArgumentNullException();
            }
            else
            {
                return(TwoOperatorBlock.Create(a, b, OperatorBlock.ToTwoOperatorType(type)));
            }
        }
コード例 #2
0
 public static Block Pow(this Block block, double a)
 {
     return(TwoOperatorBlock.Create(block, ConstBlock.Create(a), TwoOperatorType.Pow));
 }
コード例 #3
0
 public static Block Pow(this Block block, Block a)
 {
     return(TwoOperatorBlock.Create(block, a, TwoOperatorType.Pow));
 }
コード例 #4
0
 public static Block Divide(this Block block, Block a)
 {
     return(TwoOperatorBlock.Create(block, a, TwoOperatorType.Divide));
 }
コード例 #5
0
 public static Block Divide(this Block block, double a)
 {
     return(TwoOperatorBlock.Create(block, ConstBlock.Create(a), TwoOperatorType.Divide));
 }
コード例 #6
0
 public static Block Multiply(this Block block, Block a)
 {
     return(TwoOperatorBlock.Create(block, a, TwoOperatorType.Multiply));
 }
コード例 #7
0
 public static Block Multiply(this Block block, double a)
 {
     return(TwoOperatorBlock.Create(block, ConstBlock.Create(a), TwoOperatorType.Multiply));
 }
コード例 #8
0
 public static Block Minus(this Block block, Block a)
 {
     return(TwoOperatorBlock.Create(block, a, TwoOperatorType.Minus));
 }