Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow non-anonymous-type destructuring when trimmed #2089

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

nblumhardt
Copy link
Member

An old refactor pulled out structure capturing logic into a method incorrectly named TryConvertCompilerGeneratedType; this in fact is the catch-all for non-scalar/dictionary/enumerable types without an explicit IDestructuringPolicy configured.

The misleading name led to incorrect logic being implemented for skipping capturing of compiler-generated type properties when not supported: in this situation all structure capturing will be skipped.

This PR fixes the method name - TryConvertStructure - and the aforementioned trimming-related logic.

@nblumhardt
Copy link
Member Author

Pushing this through to keep #2090 fresh

@nblumhardt nblumhardt merged commit 2fb5f4d into serilog:dev Jul 24, 2024
1 check passed
@nblumhardt nblumhardt mentioned this pull request Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant