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
Counter64(ulong)
[CLSCompliant(false)]
public Counter64(ulong value)
Parameters
value
ulongValue
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(Counter64?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Counter64? other)
Parameters
other
Counter64An 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
ToUInt64()
[CLSCompliant(false)]
public ulong ToUInt64()
Returns
Operators
operator ==(Counter64?, Counter64?)
The equality operator.
public static bool operator ==(Counter64? left, Counter64? right)
Parameters
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
Returns
- bool
Returns
true
if the values of its operands are not equal,false
otherwise.