Exemple #1
0
 public EndBlockElement(string name)
 {
     switch(name.ToLower()) { case "foreach": type = EndBlockType.ForEach; break; case "if": type = EndBlockType.If; break; default: throw new Exception("Invalid end block type!"); }
 }
Exemple #2
0
 public EndBlockElement(EndBlockType blockType)
 {
     type = blockType;
 }