Exemple #1
0
        internal bool AcceptsStatmentType(StatmentType St)
        {
            foreach (StatmentType StatTyp in AcceptedValues)
            {
                if (St == StatTyp)
                {
                    return(true);
                }
            }

            return(false);
        }
Exemple #2
0
        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);
        }