CounterSample.Equals Method (CounterSample)


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

Indicates whether the specified CounterSample structure is equal to the current CounterSample structure.

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

public bool Equals(
	CounterSample sample


Type: System.Diagnostics.CounterSample

The CounterSample structure to be compared with this instance.

Return Value

Type: System.Boolean

true if sample is equal to the current instance; otherwise, false.

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

.NET Framework
Available since 2.0
Return to top