Update sizeof
and pointer type to keep up to date with C# 11, plus some fixes/improvements
#44137
Labels
sizeof
and pointer type to keep up to date with C# 11, plus some fixes/improvements
#44137
Type of issue
Outdated article
Description
Part 1:
sizeof
In sizeof.md.
The constraint of unmanaged type is no longer present in C# 11. Suggested rewording:
Then in the last paragraph, deal with the size of reference types. I also made the explanation of
struct
types consistent with the suggested addition.Part 2: Pointer Types
In unsafe-code.md.
The second sentence is outdated in C# 11. The third sentence has always been logically incorrect. The last sentence states a problem, but without immediately offering a solution. Suggested rewording:
Page URL
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/sizeof
Content source URL
https://github.com/dotnet/docs/blob/main/docs/csharp/language-reference/operators/sizeof.md
Document Version Independent Id
7e28a662-f550-d202-9a97-e684ae1b074d
Article author
@BillWagner
Metadata
Related Issues
The text was updated successfully, but these errors were encountered: