Skip to content
Discussion options

You must be logged in to vote

Add a custom deconstruct method:

class Complex(float re, float im)
{
    public float Re { get; set; } = re;
    public float Im { get; set; } = im;

    public void Deconstruct(out float re, out float im) => (re, im) = (Re, Im);
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by suugbut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants