Skip to content

Implement Deconstruct for color structs #81

@hillin

Description

@hillin

E.g.

    public static class LChuvColorExtensions
    {
        public static void Deconstruct(this LChuvColor lChuv, out double l, out double c, out double h)
        {
            l = lChuv.L;
            c = lChuv.C;
            h = lChuv.h;
        }
    }

Usage:

    LChuvColor lChuv = GetColor();
    var (l, c, h) = lChuv;

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions