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
longThe value.
Counter32(Tuple<int, byte[]>, Stream)
Creates a Counter32 instance from stream.
public Counter32(Tuple<int, byte[]> length, Stream stream)
Parameters
Counter32(uint)
[CLSCompliant(false)]
public Counter32(uint value)
Parameters
value
uintValue
Properties
TypeCode
Type code.
public SnmpType TypeCode { get; }
Property Value
Methods
AppendBytesTo(Stream)
Appends the bytes to Stream.
public void AppendBytesTo(Stream stream)
Parameters
stream
StreamThe stream.
Equals(Counter32?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Counter32? other)
Parameters
other
Counter32An object to compare with this object.
Returns
- bool
true if the current object is equal to theother
parameter; otherwise,false .
Equals(object?)
public override bool Equals(object? obj)
Parameters
Returns
GetHashCode()
Serves as a hash function for a particular type.
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
- string
A string that represents the current object.
ToUInt32()
[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
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
Returns
- bool
Returns
true
if the values of its operands are not equal,false
otherwise.