Skip to content

Include warnings against using volatile #23832

Open
@The-Futurist

Description

@The-Futurist

There seems to be a strong feeling within the C# language community (e.g. gitter discussions) that volatile should no be used, there are other ways of dealing with the problems it was intended to help solve.

The existing documentation does nothing to discourage use of volatile yet it seems most experts think it should be discouraged.

Please add information or guidance or at least some clarification about this and if volatile has been superseded these days by other methods (interlocked API etc) then please explain that.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Labels

🗺️ reQUESTTriggers an issue to be imported into Quest.dotnet-csharp/svcin-prThis issue will be closed (fixed) by an active pull request.lang-reference/subsvcokr-qualityContent-quality KR: Concerns article defects (bugs), freshness, or build warnings.

Type

No type

Projects

Status

🔖 Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions