System.Byte.Equals Method

Returns a value indicating whether this instance and a specified byte object represent the same value.

Syntax

public bool Equals (byte obj)

Parameters

obj
An object to compare to this instance.

Returns

true if obj is equal to this instance; otherwise, false.

Remarks

This method implements the IEquatable`1 interface, and performs slightly better than byte.Equals(object) because it does not have to convert the obj parameter to an object.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0