Skip to content

docs(results): note that default(Result<T>) carries a default Value - #159

Merged
senrecep merged 1 commit into
mainfrom
docs/default-result-value
Oct 20, 2026
Merged

senrecep merged 1 commit into
mainfrom
docs/default-result-value

Conversation

@senrecep

Copy link
Copy Markdown
Owner

default(Result<T>) is documented as a success, but its Value is default(TValue) (null for reference types) while [MemberNotNullWhen(true, nameof(Value))] tells the compiler it is set. Add a note pointing to EnsureNotNull. Docs only; docs commits are hidden in release-please, so no release.

@codecov

codecov Bot commented Oct 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@senrecep
senrecep merged commit 6f5aa7d into main Oct 20, 2026
10 checks passed
@senrecep
senrecep deleted the docs/default-result-value branch October 20, 2026 11:37
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