Esempio n. 1
0
        public tgCase Then(tgExpression expression)
        {
            tgSimpleCaseData.tgCaseClause clause = new tgSimpleCaseData.tgCaseClause();
            clause.When = this.WhenItem;
            clause.Then = expression;

            if (data.Cases == null)
            {
                data.Cases = new List <tgSimpleCaseData.tgCaseClause>();
            }

            this.data.Cases.Add(clause);

            return(this);
        }
Esempio n. 2
0
        public tgCase Then(object value)
        {
            tgSimpleCaseData.tgCaseClause clause = new tgSimpleCaseData.tgCaseClause();
            clause.When = this.WhenItem;
            clause.Then = new tgExpression();
            clause.Then.LiteralValue = value;

            if (data.Cases == null)
            {
                data.Cases = new List <tgSimpleCaseData.tgCaseClause>();
            }

            this.data.Cases.Add(clause);

            return(this);
        }
Esempio n. 3
0
        public tgCase Then(tgExpression expression)
        {
            tgSimpleCaseData.tgCaseClause clause = new tgSimpleCaseData.tgCaseClause();
            clause.When = this.WhenItem;
            clause.Then = expression;

            if (data.Cases == null)
            {
                data.Cases = new List<tgSimpleCaseData.tgCaseClause>();
            }

            this.data.Cases.Add(clause);

            return this;
        }
Esempio n. 4
0
        public tgCase Then(object value)
        {
            tgSimpleCaseData.tgCaseClause clause = new tgSimpleCaseData.tgCaseClause();
            clause.When = this.WhenItem;
            clause.Then = new tgExpression();
            clause.Then.LiteralValue = value;

            if (data.Cases == null)
            {
                data.Cases = new List<tgSimpleCaseData.tgCaseClause>();
            }

            this.data.Cases.Add(clause);

            return this;
        }