Closed daiplusplus closed 9 months ago
This issue was marked as stale since it has not been active for a long time
@daiplusplus I understand your point. What you are talking about is a generalized approach to obtaining information on how to destructure objects. The problem is that the whole project is intended specifically for working with attributes and to transmit settings through attributes. Look - you use UsingMemberPaths
method. There is no any notice about any attributes - just generic settings provided via some fluent APIs. This is not bad in itself. Just please understand me correctly - this will turn out a completely different project.
Related to https://github.com/destructurama/attributed/issues/28, I'd like it if I could manually list the types and members that I want excluded or masked - this also helps when consuming types from other libraries that handle or contain sensitive data but which cannot be annotated with Destructurama's attributes.
One example would be to allow the use of
nameof()
to specify members to ignore or mask. This could be done by accepting a fully-qualified type and member path, e.g.:Programmer ergonomics and type-safety could be improved by using generics to specify the type and using
nameof()
with a dummy instance lambda to get the property name:Other function parameters (with default values or overloads to reduce noise) could be used to specify
LogMasked
options: