C# SByte Equals(SByte)
Description
SByte Equals(SByte)
returns a value indicating whether
this instance is equal to a specified SByte value.
Syntax
SByte.Equals(SByte)
has the following syntax.
public bool Equals(
sbyte obj
)
Parameters
SByte.Equals(SByte)
has the following parameters.
obj
- An SByte value to compare to this instance.
Returns
SByte.Equals(SByte)
method returns true if obj has the same value as this instance; otherwise, false.
Example
using System;//from www . j av a 2 s . c o m
public class MainClass{
public static void Main(String[] argv){
System.Console.WriteLine(sbyte.MinValue.Equals(sbyte.MaxValue));
}
}
The code above generates the following result.