Evidence.Equals(Object) Method

Definition

Determines whether the specified Evidence object is equal to the current Evidence.

C#
[System.Runtime.InteropServices.ComVisible(false)]
public override bool Equals(object obj);

Parameters

obj
Object

The Evidence object to compare with the current Evidence.

Returns

true if the specified Evidence object is equal to the current Evidence; otherwise, false.

Attributes

Examples

The following code example shows the use of the Equals method. This example is part of a larger example provided for the Evidence class.

C#
Console.WriteLine("\nMake a copy of the current evidence.");
Evidence evidenceCopy = new Evidence(myEvidence);
Console.WriteLine("Count of new evidence items = " + evidenceCopy.Count);
Console.WriteLine("Does the copy equal the current evidence? " + myEvidence.Equals(evidenceCopy));

Remarks

For more information, see Equals.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5