示例#1
0
 public void AddStatement(DynaExpression Statement)
 {
     ccc.Statements.Add(Statement.Expression);
 }
示例#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);
 }
示例#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;
 }
 public void AddSetStatement(DynaExpression value)
 {
     csc2.Add(value.Statement);
 }