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.





















Home »
  C# Tutorial »
    System »




Array
BitConverter
Boolean
Byte
Char
Console
ConsoleKeyInfo
Convert
DateTime
DateTimeOffset
Decimal
Double
Enum
Environment
Exception
Guid
Int16
Int32
Int64
Math
OperatingSystem
Random
SByte
Single
String
StringComparer
TimeSpan
TimeZone
TimeZoneInfo
Tuple
Tuple
Tuple
Type
UInt16
UInt32
UInt64
Uri
Version