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

OutputMemberScopeModifier() protected méthode

protected OutputMemberScopeModifier ( MemberAttributes attributes ) : void
attributes MemberAttributes
Résultat void
        protected override void OutputMemberScopeModifier(MemberAttributes attributes)
        {
            MemberAttributes attributes2 = attributes & MemberAttributes.VTableMask;
            if (attributes2 == MemberAttributes.New)
            {
                this.Output.Write("NEW ");
            }
            switch ((attributes & MemberAttributes.ScopeMask))
            {
                case MemberAttributes.Abstract:
                    this.Output.Write("ABSTRACT ");
                    return;

                case MemberAttributes.Final:
                    this.Output.Write("");
                    return;

                case MemberAttributes.Static:
                    this.Output.Write("STATIC ");
                    return;

                case MemberAttributes.Override:
                    this.Output.Write("VIRTUAL ");
                    return;
            }
            switch ((attributes & MemberAttributes.AccessMask))
            {
                case MemberAttributes.Family:
                case MemberAttributes.Public:
                    this.Output.Write("VIRTUAL ");
                    break;
            }
        }
XSharpCodeGenerator