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