UInt64.MinValue Field in C# with Examples Last Updated : 11 Jul, 2025 Summarize Comments Improve Suggest changes Share Like Article Like Report The MinValue property or Field of UInt64 Struct is used to represent the minimum possible value of the 64-bit unsigned long integer i.e. ulong data type. The value of this field is constant means that a user cannot change the value of this field. The value of this field is 0. This prevents an OverflowException at run time. Syntax: public const ulong MinValue = 0; Return Value: This field always returns 0. Example: CSharp // C# program to illustrate the // UInt64.MinValue Field using System; class GFG { // Main Method static public void Main() { // display the Minimum // value of UInt64 struct Console.WriteLine("Minimum Value is: " + UInt64.MinValue); // taking a variable ulong var1 = 2382373544; if (var1.Equals(UInt64.MinValue)) { Console.WriteLine("Equal..!!"); Console.WriteLine("Type of var1 is: {0}", var1.GetTypeCode()); } else { Console.WriteLine("Not equal..!!"); Console.WriteLine("Type of var1 is: {0}", var1.GetTypeCode()); } } } Output: Minimum Value is: 0 Not equal..!! Type of var1 is: UInt64 Reference: https://learn.microsoft.com/en-us/dotnet/api/system.uint64.minvalue?view=netstandard-2.1 Comment More infoAdvertise with us Next Article UInt64.MaxValue Field in C# with Examples A ankita_saini Follow Improve Article Tags : C# CSharp-UInt64-Struct Similar Reads UInt16.MinValue Field in C# with Examples The MinValue field of UInt16 Struct is used to represent the minimum possible value of 16-bit unsigned integer i.e. ushort data type. The value of this field is constant means that a user cannot change the value of this field. The value of this field is 0. It also saves the program from OverflowExce 2 min read UInt16.MinValue Field in C# with Examples The MinValue field of UInt16 Struct is used to represent the minimum possible value of 16-bit unsigned integer i.e. ushort data type. The value of this field is constant means that a user cannot change the value of this field. The value of this field is 0. It also saves the program from OverflowExce 2 min read UInt32.MinValue Field in C# with Examples The MinValue Field of UInt32 Struct is used to represent the minimum possible value of 32-bit unsigned integer i.e of uint data type. The value of this field is constant means that a user cannot change the value of this field. The value of this field is 0. Syntax: public const uint MinValue = 0; Ret 1 min read UInt32.MinValue Field in C# with Examples The MinValue Field of UInt32 Struct is used to represent the minimum possible value of 32-bit unsigned integer i.e of uint data type. The value of this field is constant means that a user cannot change the value of this field. The value of this field is 0. Syntax: public const uint MinValue = 0; Ret 1 min read UInt64.MaxValue Field in C# with Examples The MaxValue field of UInt64 Struct is used to represent the maximum value of the 64-bit unsigned long integer. The value of this field is constant means that the user cannot change the value of this field. The value of this field is 18446744073709551615. Its hexadecimal value is 0xFFFFFFFFFFFFFFFF. 1 min read UInt64.MaxValue Field in C# with Examples The MaxValue field of UInt64 Struct is used to represent the maximum value of the 64-bit unsigned long integer. The value of this field is constant means that the user cannot change the value of this field. The value of this field is 18446744073709551615. Its hexadecimal value is 0xFFFFFFFFFFFFFFFF. 1 min read Like