Table of Contents

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)

Creates an Integer32 instance with a specific int.

public Integer32(int value)

Parameters

value int

Value

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

Initializes a new instance of the Integer32 class.

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

Parameters

length Tuple<int, byte[]>

The length.

stream Stream

The stream.

Fields

Zero

Zero.

public static readonly Integer32 Zero

Field Value

Integer32

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

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

public bool Equals(Integer32? other)

Parameters

other Integer32

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

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current Integer32.

Returns

bool

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

GetHashCode()

Serves as a hash function for a particular type.

public override int GetHashCode()

Returns

int

A hash code for the current Integer32.

ToErrorCode()

Converts to ErrorCode.

public ErrorCode ToErrorCode()

Returns

ErrorCode

ToInt32()

Returns an int that represents this Integer32.

public int ToInt32()

Returns

int

ToString()

Returns a string that represents this Integer32.

public override string ToString()

Returns

string

Operators

operator ==(Integer32?, Integer32?)

The equality operator.

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

Parameters

left Integer32

Left Integer32 object

right Integer32

Right Integer32 object

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

left Integer32

Left Integer32 object

right Integer32

Right Integer32 object

Returns

bool

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