XSharp.CodeDom.XSharpCodeGenerator.GenerateTypeEnd C# (CSharp) Method

GenerateTypeEnd() protected method

protected GenerateTypeEnd ( CodeTypeDeclaration e ) : void
e System.CodeDom.CodeTypeDeclaration
return void
        protected override void GenerateTypeEnd(CodeTypeDeclaration e)
        {
            if (!this.IsCurrentDelegate)
            {
                this.Indent--;
                base.Output.WriteLine();
                base.Output.Write("END ");
                if (e.IsClass)
                {
                    base.Output.Write("CLASS");
                }
                else if (e.IsStruct)
                {
                    base.Output.Write("STRUCTURE");
                }
                else if (e.IsInterface)
                {
                    base.Output.Write("INTERFACE");
                }
                else if (e.IsEnum)
                {
                    base.Output.Write("ENUM");
                }
                base.Output.WriteLine();
            }
        }
XSharpCodeGenerator