Skip to content

DiagnosticSource does not get properties in base class #41300

Closed

Description

@0b01

Description

In FilterAndPayloadSpecs, TransformSpec can only access payload properties declared in the current class but not in base class.

Configuration

Regression?

Other information

Proposed fix:

Change DeclaredProperties and GetDeclaredProperty to enable access to declared and inherited properties in current class and base class.

PropertyInfo? propertyInfo = typeInfo.GetDeclaredProperty(propertyName);

foreach (PropertyInfo property in curTypeInfo.DeclaredProperties)

https://stackoverflow.com/questions/35370384/how-to-get-declared-and-inherited-members-from-typeinfo

Activity

  1. added
    untriaged
    on Aug 24, 2020
  2. removed
    untriaged
    on Aug 26, 2020
  3. added this to the 6.0.0 milestone on Aug 26, 2020
  4. added
    enhancement
    and removed
    enhancement
    on Jan 12, 2021
  5. self-assigned this
    on Jan 12, 2021
  6. added a commit that references this issue on Jul 14, 2021
    2221870
  7. ghost added
    in-pr
    on Jul 14, 2021
  8. added a commit that references this issue on Jul 14, 2021
    afaf666
  9. ghost removed
    in-pr
    on Jul 14, 2021
  10. ghost locked as resolved and limited conversation to collaborators on Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions