C# | Byte.MinValue Field Last Updated : 23 Apr, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report The MinValue field of Byte Struct is used to represent the minimum possible value of byte 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 byte MinValue = 0; Return Value: This field always returns 0. Example: CSharp // C# program to illustrate the // Byte.MinValue field using System; class GFG { // Main Method static public void Main() { // display the Minimum value of Byte struct Console.WriteLine("Minimum Value is: " + Byte.MinValue); // Taking an array of the // integers int[] num = {12, 45, 1235, 5342}; // taking variable of Byte type byte mynum; foreach(int n in num) { if (n >= Byte.MinValue && n <= Byte.MaxValue) { // using the method of Convert class mynum = Convert.ToByte(n); Console.WriteLine("Conversion is Possible."); } else { Console.WriteLine("Not Possible"); } } } } Output: Minimum Value is: 0 Conversion is Possible. Conversion is Possible. Not Possible Not Possible Reference: https://docs.microsoft.com/en-us/dotnet/api/system.byte.minvalue?view=netstandard-2.1 Comment More infoAdvertise with us Next Article C# | Byte.MinValue Field A ankita_saini Follow Improve Article Tags : C# CSharp-Byte-Struct Similar Reads C# | Byte.MaxValue Field The MaxValue field of Byte Struct is used to represent the maximum value of the byte data type. The value of this field is constant means that the user cannot change the value of this field. The value of this field is 255. Its hexadecimal value is 0xFF. Syntax: public const byte MaxValue = 255; Retu 1 min read Int64.MinValue Field in C# with Examples The MinValue property or Field of Int64 Struct is used to represent the minimum possible value of Int64. The value of this field is constant means that a user cannot change the value of this field. The value of this field is -9223372036854775808. Its hexadecimal value is 0x8000000000000000. Syntax: 1 min read Int16.MinValue Field in C# with Examples The MinValue property or Field of Int16 Struct is used to represent the minimum possible value of Int16. The value of this field is constant means that a user cannot change the value of this field. The value of this field is -32768. Its hexadecimal value is 0x8000. It also saves the program from Ove 2 min read Int32.MinValue Field in C# with Examples The MinValue property or Field of Int32 Struct is used to represent the minimum possible value of Int32. The value of this field is constant means that a user cannot change the value of this field. The value of this field is -2,147,483,648. Its hexadecimal value is 0x80000000. Syntax: public const i 1 min read UInt64.MinValue Field in C# with Examples 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 Overfl 1 min read Like