Esempio n. 1
0
        public LogicalConditionBuilder Else()
        {
            var builder = new LogicalConditionBuilder(_writer, null, "else", this);

            _builders.Enqueue(builder);
            return(builder);
        }
Esempio n. 2
0
        public LogicalConditionBuilder ElseIf(string condition)
        {
            var builder = new LogicalConditionBuilder(_writer, condition, "else if", this);

            _builders.Enqueue(builder);
            return(builder);
        }
Esempio n. 3
0
        public LogicalConditionBuilder Else(Action <ICodeWriter> innerWrite)
        {
            var builder = new LogicalConditionBuilder(_writer, null, "else", this)
                          .WithBody(innerWrite);

            _builders.Enqueue(builder);
            return(builder);
        }
Esempio n. 4
0
        public LogicalConditionBuilder ElseIf(string condition, Action <ICodeWriter> innerWrite)
        {
            var builder = new LogicalConditionBuilder(_writer, condition, "else if", this)
                          .WithBody(innerWrite);

            _builders.Enqueue(builder);
            return(builder);
        }
Esempio n. 5
0
 internal LogicalConditionBuilder(ICodeWriter writer, string condition, string @operator = "if", LogicalConditionBuilder parent = null)
 {
     _writer    = writer;
     _condition = condition;
     _operator  = @operator;
     _parent    = parent;
     _builders  = new Queue <LogicalConditionBuilder>();
 }