Byte.MinValue Field in C#


The Byte.MinValue field in C# is used to represent the smallest possible value of a Byte.

Syntax

Following is the syntax −

public const byte MinValue = 0;

Example

Let us now see an example to implement the Byte.MinValue method −

using System;
public class Demo {
   public static void Main(){
      byte val;
      val = Byte.MinValue;
      Console.WriteLine("Minimum Value (Byte) = "+val);
   }
}

Output

This will produce the following output −

Minimum Value (Byte) = 0
raja
Published on 08-Nov-2019 11:01:13
Advertisements