Table of Contents

Class Counter64

Namespace
Lextm.SharpSnmpLib
Assembly
SharpSnmpLib.dll

Counter64 type.

public sealed class Counter64 : ISnmpData, IEquatable<Counter64>
Inheritance
Counter64
Implements
Inherited Members
Extension Methods

Constructors

Counter64(Tuple<int, byte[]>, Stream)

Initializes a new instance of the Counter64 class.

public Counter64(Tuple<int, byte[]> length, Stream stream)

Parameters

length Tuple<int, byte[]>

The length.

stream Stream

The stream.

Counter64(ulong)

Creates a Counter64 with a specific ulong.

[CLSCompliant(false)]
public Counter64(ulong value)

Parameters

value ulong

Value

Properties

TypeCode

Type code.

public SnmpType TypeCode { get; }

Property Value

SnmpType

Methods

AppendBytesTo(Stream)

Appends the bytes to Stream.

public void AppendBytesTo(Stream stream)

Parameters

stream Stream

The stream.

Equals(Counter64?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Counter64? other)

Parameters

other Counter64

An object to compare with this object.

Returns

bool

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

Equals(object?)

Determines whether the specified object is equal to the current Counter64.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current Counter64.

Returns

bool

true if the specified object is equal to the current Counter64; otherwise, false.

GetHashCode()

Serves as a hash function for a particular type.

public override int GetHashCode()

Returns

int

A hash code for the current Counter64.

ToString()

Returns a string that represents this Counter64.

public override string ToString()

Returns

string

ToUInt64()

Returns a ulong that represents a Counter64.

[CLSCompliant(false)]
public ulong ToUInt64()

Returns

ulong

Operators

operator ==(Counter64?, Counter64?)

The equality operator.

public static bool operator ==(Counter64? left, Counter64? right)

Parameters

left Counter64

Left Counter64 object

right Counter64

Right Counter64 object

Returns

bool

Returns true if the values of its operands are equal, false otherwise.

operator !=(Counter64?, Counter64?)

The inequality operator.

public static bool operator !=(Counter64? left, Counter64? right)

Parameters

left Counter64

Left Counter64 object

right Counter64

Right Counter64 object

Returns

bool

Returns true if the values of its operands are not equal, false otherwise.