Duration (Pacific Standard Time):
To (Pacific Standard Time):
Impact:
  • None
User Action:
  • None
 Collapse AllExpand All      Code: All Code: Multiple Code: Visual Basic Code: C# Code: Visual C++ Code: F# Code: JScript 

Equals Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Indicates whether this instance and a specified object are equal.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)
Public Overrides Function Equals ( _
	obj As Object _
) As Boolean

Parameters

obj
Type: System..::..Object
Another object to compare to.

Return Value

Type: System..::..Boolean
true if obj and this instance are the same type and represent the same value; otherwise, false.

The default implementation of the Equals method uses reflection to compare the corresponding fields of obj and this instance. Override the Equals method for a particular type to improve the performance of the method and more closely represent the concept of equality for the type.