Open
Description
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.
- ID: d226514d-c7cb-0d1b-b9dc-fb791399dc47
- Version Independent ID: aa5d1078-7f89-98ce-7fdc-107c9ed3eebc
- Content: volatile - C# Reference
- Content Source: docs/csharp/language-reference/keywords/volatile.md
- Product: dotnet-csharp
- Technology: csharp-language-reference
- GitHub Login: @BillWagner
- Microsoft Alias: wiwagn
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
🔖 Ready