Beispiel #1
0
        public static LPUnaryCompareOperator Create(CompareOption option, LPUser operand1)
        {
            var lpuco = new LPUnaryCompareOperator
            {
                Option = option,
                Type   = operand1.Type
            };

            lpuco.operand.Add(operand1);
            return(lpuco);
        }
Beispiel #2
0
        public static LPBinaryOperator Create(BinaryOption option, LPUser operand1, LPUser operand2)
        {
            var lpbo = new LPBinaryOperator
            {
                Option = option,
                Type   = operand1.Type,
            };

            lpbo.operand.Add(operand1);
            lpbo.operand.Add(operand2);
            return(lpbo);
        }