/// <summary>
 /// Creates an instance of ConditionalValue of type DynamicValue.
 /// </summary>
 /// <returns>Conditional value</returns>
 public static ConditionalValue <DynamicValue> CreateConditionalNumber()
 {
     return(new ConditionalValue <DynamicValue>()
     {
         Condition = DefaultCondition,
         ValueWhenTrue = DynamicLiteral <int> .Create(0),
         ValueWhenFalse = DynamicLiteral <int> .Create(0)
     });
 }
示例#2
0
 /// <summary>
 /// Initializes the instance with default values.
 /// </summary>
 public void InitDefault()
 {
     this.Operator   = MatchOperator.Equals;
     this.Expression = DynamicLiteral <int> .CreateArgument(1);
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of Autodesk.IM.Rule.Activities.MathFunctionActivityWithOneArg class.
 /// </summary>
 public MathFunctionWithOneArg()
 {
     this.Operand1 = DynamicLiteral.CreateArgument(DefaultNumericValue);
 }