Table of Contents

Class TimeTicks

Namespace
Lextm.SharpSnmpLib
Assembly
SharpSnmpLib.dll

TimeTicks type.

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

Remarks

Represents SNMP TimeTicks type.

Constructors

TimeTicks(TimeSpan)

Creates a TimeTicks instance with TimeSpan.

public TimeTicks(TimeSpan span)

Parameters

span TimeSpan

The time span.

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

Initializes a new instance of the TimeTicks class.

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

Parameters

length Tuple<int, byte[]>

The length.

stream Stream

The stream.

TimeTicks(uint)

Creates a TimeTicks instance with a specific count.

[CLSCompliant(false)]
public TimeTicks(uint count)

Parameters

count uint

Count

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

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

public bool Equals(TimeTicks? other)

Parameters

other TimeTicks

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

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current TimeTicks.

Returns

bool

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

GetHashCode()

Serves as a hash function for a particular type.

public override int GetHashCode()

Returns

int

A hash code for the current TimeTicks.

ToString()

Returns a string that represents this TimeTicks.

public override string ToString()

Returns

string

ToTimeSpan()

Returns TimeSpan representation.

public TimeSpan ToTimeSpan()

Returns

TimeSpan

ToUInt32()

Returns an int that represents the current TimeTicks

[CLSCompliant(false)]
public uint ToUInt32()

Returns

uint

Operators

operator ==(TimeTicks?, TimeTicks?)

The equality operator.

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

Parameters

left TimeTicks

Left TimeTicks object

right TimeTicks

Right TimeTicks object

Returns

bool

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

operator !=(TimeTicks?, TimeTicks?)

The inequality operator.

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

Parameters

left TimeTicks

Left TimeTicks object

right TimeTicks

Right TimeTicks object

Returns

bool

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