Edit

Share via


OperationInfo.Equals(Object) Method

Definition

Determines whether two object instances are equal.

public override bool Equals (object obj);

Parameters

obj
Object

The object to compare with the current OperationInfo.

Returns

true to indicate that the current OperationInfo and obj are equal; otherwise, false.

Examples

The following example demonstrates how to use the Equals method.

OperationInfo info1 = new OperationInfo();
info1.Name = "ProcessData";
OperationInfo info2 = new OperationInfo();
info2.Name = "ProcessData";
return info1.Equals(info2);

Remarks

This operation compares the values of the ContractName, IsOneWay, Parameters, and ProtectionLevel values.

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1