Table of Contents

Class Counter32

Namespace
Lextm.SharpSnmpLib
Assembly
SharpSnmpLib.dll

Counter32 type.

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

Constructors

Counter32(long)

Initializes a new instance of the Counter32 class.

public Counter32(long value)

Parameters

value long

The value.

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

Creates a Counter32 instance from stream.

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

Parameters

length Tuple<int, byte[]>

The length.

stream Stream

The stream.

Counter32(uint)

Creates a Counter32 with a specific uint.

[CLSCompliant(false)]
public Counter32(uint value)

Parameters

value uint

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(Counter32?)

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

public bool Equals(Counter32? other)

Parameters

other Counter32

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 Counter32.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current Counter32.

Returns

bool

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

GetHashCode()

Serves as a hash function for a particular type.

public override int GetHashCode()

Returns

int

A hash code for the current Counter32.

ToString()

Returns a string that represents this Counter32.

public override string ToString()

Returns

string

A string that represents the current object.

ToUInt32()

Returns a uint that represents a Counter32.

[CLSCompliant(false)]
public uint ToUInt32()

Returns

uint

A uint that represents the current object.

Operators

operator ==(Counter32?, Counter32?)

The equality operator.

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

Parameters

left Counter32

Left Counter32 object

right Counter32

Right Counter32 object

Returns

bool

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

operator !=(Counter32?, Counter32?)

The inequality operator.

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

Parameters

left Counter32

Left Counter32 object

right Counter32

Right Counter32 object

Returns

bool

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