XSharp.CodeDom.XSharpCodeGenerator.GenerateEvent C# (CSharp) Méthode

GenerateEvent() protected méthode

protected GenerateEvent ( CodeMemberEvent e, CodeTypeDeclaration c ) : void
e System.CodeDom.CodeMemberEvent
c System.CodeDom.CodeTypeDeclaration
Résultat void
        protected override void GenerateEvent(CodeMemberEvent e, CodeTypeDeclaration c)
        {
            if (!this.IsCurrentDelegate && !this.IsCurrentEnum)
            {
                if (e.CustomAttributes.Count > 0)
                {
                    this.GenerateAttributes(e.CustomAttributes);
                }
                if (e.PrivateImplementationType == null)
                {
                    this.OutputMemberAccessModifier(e.Attributes);
                }
                else
                {
                    base.Output.Write("VIRTUAL ");
                }
                base.Output.Write("EVENT ");
                string fqdn = e.Name;

                if (e.PrivateImplementationType != null)
                {
                    fqdn = e.PrivateImplementationType.BaseType + this.selector + fqdn;
                }
                this.OutputIdentifier(fqdn);
                base.Output.Write(" AS ");
                this.OutputType(e.Type);
                base.Output.WriteLine();
            }
        }
XSharpCodeGenerator