Home

SystemUInt32

System.UInt32 is the unsigned 32-bit integer value type in the .NET framework. It is defined as a struct named UInt32 in the System namespace. In C#, the alias uint maps to System.UInt32, providing a concise keyword for this type. In VB.NET, the equivalent unsigned type is UInteger.

The type stores non-negative whole numbers from 0 to 4,294,967,295 and occupies 4 bytes of memory. As

System.UInt32 implements several common interfaces expected of .NET value types, including IComparable, IComparable<UInt32>, IEquatable<UInt32>, IFormattable, and

Usage considerations include the non-negative nature of the value range; negative numbers are not representable. In

a
value
type,
variables
of
this
type
hold
the
actual
numeric
value,
and
the
default
value
is
0.
System.UInt32
supports
standard
arithmetic
and
bitwise
operations,
and
it
participates
in
common
numeric
APIs.
It
provides
parsing
utilities
such
as
UInt32.Parse
and
UInt32.TryParse,
and
supports
conversion
to
strings
via
ToString.
IConvertible.
These
enable
comparisons,
equality
checks,
formatting,
and
conversions
to
other
primitive
types.
checked
contexts,
arithmetic
overflow
throws
an
exception;
in
unchecked
contexts,
results
wrap
around.
Boxing
may
occur
when
a
UInt32
value
is
treated
as
an
object
or
as
an
interface
type.
System.UInt32
is
used
across
.NET
Framework,
.NET
Core,
and
.NET
5/6/7,
and
is
accessible
from
languages
targeting
the
common
language
runtime.
It
is
a
fundamental
type
for
counts,
sizes,
identifiers,
and
other
non-negative
numeric
data
within
the
32-bit
unsigned
range.