public IfThenElseSequence(string indent, string errorValue)
{
Indent = indent;
ErrorValue = errorValue;
Indent = string.Empty;
ElseBlock = new IfBlock("");
if(errorValue != null && errorValue != string.Empty)
ElseBlock.CodeLines.Add("throw new Exception(\"Enum did not match! "+ errorValue +"'.\");");
else
ElseBlock.CodeLines.Add("throw new Exception(\"Enum did not match!\");");
}