Exemplo n.º 1
0
 public void AddStatement(DynaExpression Statement)
 {
     ccc.Statements.Add(Statement.Expression);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Provides a simple container and methods for building CodeDOM-based value cast expressions.
 /// </summary>
 /// <param name="CastType">A Type object containing the system data type to cast to.</param>
 /// <param name="Expression">A DynaStatement object whose result value will be cast.</param>
 public DynaCast(Type CastType, DynaExpression Expression)
 {
     cce = new CodeCastExpression(new CodeTypeReference(CastType), Expression.Expression);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Sets the expression value to cast from.
 /// </summary>
 /// <param name="ExpressionStatement">A DynaStatement object whose result value will be cast.</param>
 public void SetExpression(DynaExpression ExpressionStatement)
 {
     cce.Expression = ExpressionStatement.Expression;
 }
Exemplo n.º 4
0
 public void AddSetStatement(DynaExpression value)
 {
     csc2.Add(value.Statement);
 }