Skip to content

Some specific meta-programming (metadata access) questions... #15723

Closed
@mgravell

Description

@mgravell

Blame @davidfowl - he told me to put them here ;p

  1. the big one; is there an indirect equivalent to GetMethodBody() / GetILAsByteArray() (plus locals, params, exception clauses etc)? Basically, is there an API that exposes the raw underlying IL? If the answer to this one is "nope", then the rest is moot...
  2. [UnverifiableCodeAttribute] - no longer exists; is there a way to determine if a member is unverifiable?
  3. can volatile fields be detected? Sigil used to do this via GetRequiredCustomModifiers()
  4. TypedReference - am I right in thinking this simply doesn't exist as a concept?
  5. any mechanism to resolve string literal and fields from metadata tokens? (akin to ResolveString() / ResolveField())

Context: I'm converting Sigil/Jil; most stuff is working, but some low-level meta-programming stuff is missing. It would be nice to reinstate the original optimizations to Jil (and an entire chunk of Sigil).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions