public override RuleStruct GetStruct() { RuleStruct @struct = base.GetStruct(); @struct.selectionConditionList.selectionConditionCount = this.Conditions.Count; @struct.selectionConditionList.selectionArray = new SelectionConditionStruct[this.Conditions.Count]; for (int i = 0; i < this.Conditions.Count; i++) { @struct.selectionConditionList.selectionArray[i] = this.Conditions[i].GetStruct(); } return(@struct); }
public virtual RuleStruct GetStruct() { RuleStruct @struct = new RuleStruct(); @struct.selectionConditionList.selectionConditionCount = 0; @struct.selectionConditionList.selectionArray = null; @struct.action = this.IssuanceStatement.GetStruct(); if (this.Output != RuleOutput.EvaluationContext) { return @struct; } else { throw new Exception("Unexpected Condition: Output == RuleOutput.EvaluationContext "); } }
public virtual RuleStruct GetStruct() { RuleStruct @struct = new RuleStruct(); @struct.selectionConditionList.selectionConditionCount = 0; @struct.selectionConditionList.selectionArray = null; @struct.action = this.IssuanceStatement.GetStruct(); if (this.Output != RuleOutput.EvaluationContext) { return(@struct); } else { throw new Exception("Unexpected Condition: Output == RuleOutput.EvaluationContext "); } }