Skip to content

DiagnosticSource does not get properties in base class #41300

@0b01

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions