Skip to content

Make attributes usable on record parameters #196

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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