This method is used to return a value indicating whether this instance and a specified Byte object represent the same value.
public bool Equals (byte obj);
Here, obj is a byte object to compare to this instance.
Return Value: This method returns true if obj is equal to this instance otherwise, it returns false.
Below programs illustrate the use of Byte.Equals(Byte) Method:
val2 is not equal to val1
10 is not equal to 20 30 is not equal to 20 10 is equal to 10 5 is not equal to 7 40 is not equal to 50 1 is equal to 1
- Difference between Method Overriding and Method Hiding in C#
- C# | Random.Next() Method
- C# | Method Parameters
- C# | Math.Abs() Method | Set - 2
- C# | Method Overriding
- Main Method in C#
- Decimal.Add() Method in C#
- Method Hiding in C#
- C# | IsNullOrEmpty() Method
- Stack.Contains() Method in C#
- Stack.Pop() Method in C#
- C# | Uri.ToString() Method
- C# | Math.Exp() Method
- C# | Math.Abs() Method | Set - 1
- Queue.Contains() Method in C#
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.