Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/csharp/language-reference/operators/sizeof.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ The expressions presented in the following table are evaluated at compile time t

The size of the types in the preceding table is a compile-time constant.

For an enum type, the result of the `sizeof` operator is the size of the enum's underlying integral type. The result is computed at compile time.

In [unsafe](../keywords/unsafe.md) code, you can use `sizeof` on any non-`void` type, including types constructed from type parameters.

> [!NOTE]
Expand Down
Loading