Skip to content

[Proposal] Add Parse and TryParse methods for Guid/long/int-backed idsย #30

@hankovich

Description

@hankovich

Hi, thanks for the handy library. I think it would be rather nice to have Parse method to do

UserId.Parse("some guid")

instead of

new UserId(Guid.Parse("some guid"))

And I'd like to also see TryParse to make my parsing safer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions