C# UInt16 Equals(UInt16)
Description
UInt16 Equals(UInt16)
returns a value indicating whether
this instance is equal to a specified UInt16 value.
Syntax
UInt16.Equals(UInt16)
has the following syntax.
public bool Equals(
ushort obj
)
Parameters
UInt16.Equals(UInt16)
has the following parameters.
obj
- A 16-bit unsigned integer to compare to this instance.
Returns
UInt16.Equals(UInt16)
method returns true if obj has the same value as this instance; otherwise, false.
Example
/* w ww . j av a 2 s . co m*/
using System;
public class MainClass{
public static void Main(String[] argv){
System.Console.WriteLine(UInt16.MinValue.Equals((UInt16)123));
}
}
The code above generates the following result.