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)
public TimeTicks(TimeSpan span)
Parameters
span
TimeSpanThe time span.
TimeTicks(Tuple<int, byte[]>, Stream)
Initializes a new instance of the TimeTicks class.
public TimeTicks(Tuple<int, byte[]> length, Stream stream)
Parameters
TimeTicks(uint)
Creates a TimeTicks instance with a specific count.
[CLSCompliant(false)]
public TimeTicks(uint count)
Parameters
count
uintCount
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(TimeTicks?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(TimeTicks? other)
Parameters
other
TimeTicksAn 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
ToTimeSpan()
Returns TimeSpan representation.
public TimeSpan ToTimeSpan()
Returns
ToUInt32()
[CLSCompliant(false)]
public uint ToUInt32()
Returns
Operators
operator ==(TimeTicks?, TimeTicks?)
The equality operator.
public static bool operator ==(TimeTicks? left, TimeTicks? right)
Parameters
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
Returns
- bool
Returns
true
if the values of its operands are not equal,false
otherwise.