Skip to content

Make attributes usable on record parameters #196

@Atulin

Description

@Atulin

Why write lot code...

public sealed partial record Command
(
    [property: MinLength(20)] string Name,
    [property: MaxLength(250)] string Description,
) : IValidationTarget<Command>;

... when few code do trick?

public sealed partial record Command
(
    [MinLength(20)] string Name,
    [MaxLength(250)] string Description,
) : IValidationTarget<Command>;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions