Skip to content

OriginalVisibilityAttribute #73

@CptMoore

Description

@CptMoore

I really find it useful to see in the de-compiled code the original access modifier of a method/field/type, as BepInEx.AssemblyPublicizer provides it.

It looks like this:

    [OriginalAttributes(FieldAttributes.Private)]
    public DataManager dataManager;

That is what is embedded into the publicized dll:

namespace BepInEx.AssemblyPublicizer
{
  internal sealed class OriginalAttributesAttribute : Attribute
  {
    public OriginalAttributesAttribute([In] TypeAttributes obj0)
    {
    }

    public OriginalAttributesAttribute([In] MethodAttributes obj0)
    {
    }

    public OriginalAttributesAttribute([In] FieldAttributes obj0)
    {
    }
  }
}

The naming could be better, I'd suggest OrignalAccessModifierAttribute...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions