Table of Contents

Class Null

Namespace
Lextm.SharpSnmpLib
Assembly
SharpSnmpLib.dll

Null type.

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

Constructors

Null()

Initializes a new instance of the Null class.

public Null()

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

Initializes a new instance of the Null class.

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

Parameters

length Tuple<int, byte[]>

The length data.

stream Stream

The stream.

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

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

public bool Equals(Null? other)

Parameters

other Null

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

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current Null.

Returns

bool

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

GetHashCode()

Serves as a hash function for a particular type.

public override int GetHashCode()

Returns

int

A hash code for the current Null.

ToString()

Returns a string that represents this Null.

public override string ToString()

Returns

string

Operators

operator ==(Null?, Null?)

The equality operator.

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

Parameters

left Null

Left Null object

right Null

Right Null object

Returns

bool

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

operator !=(Null?, Null?)

The inequality operator.

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

Parameters

left Null

Left Null object

right Null

Right Null object

Returns

bool

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