CounterSample.Equality Operator (CounterSample, CounterSample)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

equivalentCodeEntityM:System.Diagnostics.CounterSample.Equals(System.Diagnostics.CounterSample,System.Diagnostics.CounterSample)

Returns a value that indicates whether two CounterSample structures are equal.

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

public static bool operator ==(
	CounterSample a,
	CounterSample b
)

Parameters

a
Type: System.Diagnostics.CounterSample

A CounterSample structure.

b
Type: System.Diagnostics.CounterSample

Another CounterSample structure to be compared to the structure specified by the a parameter.

Return Value

Type: System.Boolean

true if a and b are equal; otherwise, false.

Two CounterSample structures are equal if they have identical property values.

.NET Framework
Available since 2.0
Return to top
Show: