internal bool AcceptsStatmentType(StatmentType St) { foreach (StatmentType StatTyp in AcceptedValues) { if (St == StatTyp) { return(true); } } return(false); }
public static CodeSection StartCodeStatment(this CodeSection codeSection, StatmentType statmentType, string TypeName, object Instance, string methodName, params object[] objects) { var paralist = new List <object>(); if (objects != null) { paralist = objects.ToList(); } var CodeStatment = new CodeStatment() { Instance = Instance, MethedName = methodName, Paremters = paralist, StatmentType = statmentType }; codeSection.CodeStatments.Add(CodeStatment); return(codeSection); }