AutoDeconstruct
AutoDeconstruct copied to clipboard
A library that automatically adds support for object deconstruction in C#.
AutoDeconstruct only looks at definitions in the current compilation. However, we need to handle the accessibility correctly. For example, if the target type is `internal`, the corresponding static `Deconstruct` extension...
I could group the types in AutoDeconstruct into the same namespace if duplicates exist. Meaning, if I ended up with something like this: ```csharp namespace A { public static partial...
I'm doing this will Rocks, so repeat that here.
Using `[assembly: AutoDeconstruct]` **could** cause performance issues, because the entire assembly needs to be searched to find types. However, I haven't done any performance research to see what the difference...
From [this comment](https://discord.com/channels/143867839282020352/598678594750775301/1335391163699429456): > you can avoid the `.SelectMany((names, _) => names).Collect()` if you take the `List` and convert it to a `EquatableArray` that you return.
What would happen if I did this? ```c# [AutoDeconstruct] public class Person { public uint Age { get; set; } public Guid Id { get; set; } } [AutoDeconstruct(Filtering.Exclude, [nameof(Customer.Age)])]...