RTI Connext C# API  7.0.0
EventCount< TInteger > Struct Template Reference

An event count has a value and a change from the last time the value was looked up More...

Inherits IEquatable< EventCount< TInteger >>.

Public Member Functions

 EventCount (TInteger value, TInteger change)
 Creates an instance with a value and a change count More...
 
void Deconstruct (out TInteger value, out TInteger change)
 Deconstructs the EventCount object. More...
 
override int GetHashCode ()
 Gets the hash code. More...
 
override string ToString ()
 Returns a readable representation More...
 
bool Equals (EventCount< TInteger > other)
 Compares for equality. More...
 

Static Public Member Functions

static implicit operator EventCount< TInteger > ((TInteger, TInteger) t)
 Implicit conversion from a tuple with (Value, Change) More...
 

Properties

TInteger Value [get]
 The total value for this counter. More...
 
TInteger Change [get]
 The change (positive or negative) of Value since this counter was last looked up. More...
 

Detailed Description

An event count has a value and a change from the last time the value was looked up

Type Constraints
TInteger :unmanaged 

Constructor & Destructor Documentation

◆ EventCount()

EventCount ( TInteger  value,
TInteger  change 
)

Creates an instance with a value and a change count

Member Function Documentation

◆ Deconstruct()

void Deconstruct ( out TInteger  value,
out TInteger  change 
)

Deconstructs the EventCount object.

◆ Equals()

bool Equals ( EventCount< TInteger >  other)

Compares for equality.

◆ GetHashCode()

override int GetHashCode ( )

Gets the hash code.

◆ operator EventCount< TInteger >()

static implicit operator EventCount< TInteger > ( (TInteger, TInteger)  t)
static

Implicit conversion from a tuple with (Value, Change)

◆ ToString()

override string ToString ( )

Returns a readable representation

Property Documentation

◆ Change

TInteger Change
get

The change (positive or negative) of Value since this counter was last looked up.

◆ Value

TInteger Value
get

The total value for this counter.