Section navigation

Public structRead-only Unit

Namespace
Rowles.LeanCorpus.Codecs.CodecKit.Codecs
Assembly
Rowles.LeanCorpus.dll

A type with exactly one value, used for codecs that produce no meaningful result (e.g., Skip, Magic, Padding).

public readonly struct Unit : IEquatable<Unit>
Implements

Public field Value

Public method Equals(Unit)

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

Public method Equals(object?)

Indicates whether this instance and a specified object are equal.

Public method GetHashCode()

Returns the hash code for this instance.

Public method ToString()

Returns the fully qualified type name of this instance.

Public operator operator ==(Unit, Unit)

Public operator operator !=(Unit, Unit)