Skip to content

Mark Value and HasValue of System.Nullable<T> as readonly #836

@bernd5

Description

@bernd5

accessing Value and HasValue of System Nullable in a readonly context causes a copy...

=> please mark these properties readonly
(best would be a static analyzer which marks as much readonly as possible)

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-approvedAPI was approved in API review, it can be implementedarea-System.Runtimehelp wanted[up-for-grabs] Good issue 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