AutoDeconstruct icon indicating copy to clipboard operation
AutoDeconstruct copied to clipboard

A library that automatically adds support for object deconstruction in C#.

Results 6 AutoDeconstruct issues
Sort by recently updated
recently updated
newest added

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...

enhancement

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...

documentation

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.

enhancement

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)])]...

enhancement