Skip to content

Use Nullable<T>.GetValueOrDefault() #13791

Description

@iSazonov

We have over 270 uses where Nullable.HasValue is before Nullable.Value.
Most of these use cases could be replaced with Nullable.GetValueOrDefault() in some way.
(It is not LINQ!)

dotnet/runtime#33792

Metadata

Metadata

Assignees

No one assigned

    Labels

    First-Time-IssueEasy issues first time contributors can work on to learn about this projectHacktoberfestPotential candidate to participate in HacktoberfestIssue-Code Cleanupthe issue is for cleaning up the code with no impact on functionalityUp-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributors

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions