Skip to content

AccessCounter Methods

Counts read and write accesses on a transaction participant.

Equals(object?)

override
View source
public override readonly bool Equals(object? obj)
Indicates whether this instance and a specified object are equal.

Parameters

objobject?
The object to compare with the current instance.

Returns

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

Equals(AccessCounter)

View source
public readonly bool Equals(AccessCounter other)
Indicates whether the current object is equal to another object of the same type.

Parameters

otherAccessCounter
An object to compare with this object.

Returns

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode

override
View source
public override readonly int GetHashCode()
Returns the hash code for this instance.

Returns

A 32-bit signed integer that is the hash code for this instance.

operator +(AccessCounter, AccessCounter)

static
View source
public static AccessCounter operator +(AccessCounter c1, AccessCounter c2)
Adds the read and write counts from two values.

Parameters

c1AccessCounter
The first access count.
c2AccessCounter
The second access count.

Returns

The combined access count.