public void GenerateInto(CodeGenerationFile codeGenerationFile)
        {
            string str = "";

            if (this.AccessModifier == MethodCodeAccessModifier.Public)
            {
                str += "public ";
            }
            else if (this.AccessModifier == MethodCodeAccessModifier.Protected)
            {
                str += "protected ";
            }
            else if (this.AccessModifier == MethodCodeAccessModifier.Private)
            {
                str += "private ";
            }
            else if (this.AccessModifier == MethodCodeAccessModifier.Internal)
            {
                str += "internal ";
            }
            if (this.IsStatic)
            {
                str += "static ";
            }
            if (this.PolymorphismInfo == MethodCodePolymorphismInfo.Virtual)
            {
                str += "virtual ";
            }
            else if (this.PolymorphismInfo == MethodCodePolymorphismInfo.Override)
            {
                str += "override ";
            }
            string line1 = str + this.ReturnParameter + " " + this.Name + this.MethodSignature;

            codeGenerationFile.AddLine(line1);
            codeGenerationFile.AddLine("{");
            foreach (string line2 in this._lines)
            {
                codeGenerationFile.AddLine(line2);
            }
            codeGenerationFile.AddLine("}");
        }
        public void GenerateInto(CodeGenerationFile codeGenerationFile)
        {
            string str = "";

            if (this.AccessModifier == MethodCodeAccessModifier.Public)
            {
                str += "public ";
            }
            else if (this.AccessModifier == MethodCodeAccessModifier.Protected)
            {
                str += "protected ";
            }
            else if (this.AccessModifier == MethodCodeAccessModifier.Private)
            {
                str += "private ";
            }
            else if (this.AccessModifier == MethodCodeAccessModifier.Internal)
            {
                str += "internal ";
            }
            if (this.IsStatic)
            {
                str += "static ";
            }
            string line1 = str + this.Name + this.MethodSignature;

            if (!string.IsNullOrEmpty(this.BaseCall))
            {
                line1 = line1 + " : base" + this.BaseCall;
            }
            codeGenerationFile.AddLine(line1);
            codeGenerationFile.AddLine("{");
            foreach (string line2 in this._lines)
            {
                codeGenerationFile.AddLine(line2);
            }
            codeGenerationFile.AddLine("}");
        }
        public void GenerateInto(CodeGenerationFile codeGenerationFile)
        {
            if (this.CommentSection != null)
            {
                this.CommentSection.GenerateInto(codeGenerationFile);
            }
            string str1 = "";

            if (this.AccessModifier == ClassCodeAccessModifier.Public)
            {
                str1 += "public ";
            }
            else if (this.AccessModifier == ClassCodeAccessModifier.Internal)
            {
                str1 += "internal ";
            }
            if (this.IsPartial)
            {
                str1 += "partial ";
            }
            string str2 = "class";

            if (!this.IsClass)
            {
                str2 = "struct";
            }
            string line1 = str1 + str2 + " " + this.Name;

            if (this.InheritedInterfaces.Count > 0)
            {
                line1 += " : ";
                for (int index = 0; index < this.InheritedInterfaces.Count; ++index)
                {
                    string inheritedInterface = this.InheritedInterfaces[index];
                    line1 = line1 + " " + inheritedInterface;
                    if (index + 1 != this.InheritedInterfaces.Count)
                    {
                        line1 += ", ";
                    }
                }
            }
            if (this.IsGeneric)
            {
                string str3 = line1 + "<";
                for (int index = 0; index < this.GenericTypeCount; ++index)
                {
                    str3 = this.GenericTypeCount != 1 ? str3 + "T" + (object)index : str3 + "T";
                    if (index + 1 != this.GenericTypeCount)
                    {
                        str3 += ", ";
                    }
                }
                line1 = str3 + ">";
            }
            codeGenerationFile.AddLine(line1);
            codeGenerationFile.AddLine("{");
            foreach (ClassCode nestedClass in this.NestedClasses)
            {
                nestedClass.GenerateInto(codeGenerationFile);
            }
            foreach (VariableCode variable in this.Variables)
            {
                string line2 = variable.GenerateLine();
                codeGenerationFile.AddLine(line2);
            }
            if (this.Variables.Count > 0)
            {
                codeGenerationFile.AddLine("");
            }
            foreach (ConstructorCode constructor in this.Constructors)
            {
                constructor.GenerateInto(codeGenerationFile);
                codeGenerationFile.AddLine("");
            }
            foreach (MethodCode method in this.Methods)
            {
                method.GenerateInto(codeGenerationFile);
                codeGenerationFile.AddLine("");
            }
            codeGenerationFile.AddLine("}");
        }