Class Integer32
- Namespace
- Lextm.SharpSnmpLib
- Assembly
- SharpSnmpLib.dll
Integer32 type in SMIv2 (or INTEGER in SMIv1).
public sealed class Integer32 : ISnmpData, IEquatable<Integer32>
- Inheritance
-
Integer32
- Implements
- Inherited Members
- Extension Methods
Constructors
Integer32(int)
public Integer32(int value)
Parameters
value
intValue
Integer32(Tuple<int, byte[]>, Stream)
Initializes a new instance of the Integer32 class.
public Integer32(Tuple<int, byte[]> length, Stream stream)
Parameters
Fields
Zero
Zero.
public static readonly Integer32 Zero
Field Value
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(Integer32?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Integer32? other)
Parameters
other
Integer32An 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
ToErrorCode()
Converts to ErrorCode.
public ErrorCode ToErrorCode()
Returns
ToInt32()
public int ToInt32()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(Integer32?, Integer32?)
The equality operator.
public static bool operator ==(Integer32? left, Integer32? right)
Parameters
Returns
- bool
Returns
true
if the values of its operands are equal,false
otherwise.
operator !=(Integer32?, Integer32?)
The inequality operator.
public static bool operator !=(Integer32? left, Integer32? right)
Parameters
Returns
- bool
Returns
true
if the values of its operands are not equal,false
otherwise.