-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Description
Unsigned sizeof
- Specification: https://github.com/dotnet/csharplang/pull/9634/files [TEMPORARY URL]
- Discussion: Please make sizeof(T) compatible with uint/nuint #5399
Summary
This proposal enables sizeof
expressions without a constant value to implicitly convert to unsigned integer types the same size as uint
or larger:
uint size = sizeof(SomeStruct);
PaulusParssinen, BoyBaykiller, h3xds1nz, Unknown6656, Athari and 4 moreh3xds1nz, Unknown6656, TahirAhmadov, CVET-TJGutjahr and hamarb123