In C#, UInt32 struct is used to represent 32-bit unsigned integers(also termed as uint data type) starting from range 0 to 4,294,967,295. It also provides different types of methods to compare instances of this type, convert the value of an instance to its String representation, convert the String representation of a number to an instance of this type, etc. This struct is defined under System namespace. UInt32 struct inherits the ValueType class which inherits the Object class.
|MaxValue||Represents the largest possible value of UInt32. This field is constant.|
|MinValue||Represents the smallest possible value of UInt32. This field is constant.|
Equal to MaxValue!
|CompareTo()||Compares the current instance to a specified object or UInt32 and returns an indication of their relative values.|
|Equals()||Returns a value which shows whether the current instance is equal to a specified object or UInt32.|
|GetHashCode()||Returns the hash code for this instance.|
|GetTypeCode()||Returns the TypeCode for value type UInt32.|
|Parse()||Converts the string representation of a number to its 32-bit unsigned integer equivalent.|
|ToString()||Converts the numeric value of this instance to its equivalent string representation.|
|TryParse()||Tries to convert the string representation of a number to its 32-bit unsigned integer equivalent. A return value indicates whether the conversion succeeded or failed.|
The hash code of myval is: 33453242
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.