Skip to content

Conversation

@j0rn32
Copy link

@j0rn32 j0rn32 commented Jan 29, 2026

#875

Adds .FromNullable function to simplify working with null values:

[ValueObject<int>] public readonly partial struct CompanyId;

...
var result = SomeFunction.GetSomeStuff();
// CompanyId? id = result.CompanyId is null ? null : CompanyId.From(result.CompanyId.Value);
CompanyId? id = CompanyId.FromNullable(result.CompanyId);

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant