Skip to content

PropertyInfo.GetBaseDefinition #23063

@jnm2

Description

@jnm2
  1. Why is this not currently available?

  2. Either way I need it, so what is the correct implementation? Mimicking MethodInfo's is not feasible in user code. As I understand it, a property comprises more than just one or two accessor methods. It has its own metadata and override tracking, right? Is it possible for a CIL property to be overridden without overriding either method?
    (Happy to explain the use case if it's helpful.)

Actually what I really need is a bool PropertyInfo.IsBaseDefinition(PropertyInfo), but I assume that's a limited case that can only be built on PropertyInfo PropertyInfo.GetBaseDefinition().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions