Table of Contents

Struct Witness

Namespace
NLightning.Domain.ValueObjects
Assembly
NLightning.Domain.dll
public readonly struct Witness : IValueObject, IEquatable<Witness>
Implements
Inherited Members

Constructors

Witness(byte[])

public Witness(byte[] value)

Parameters

value byte[]

Properties

Length

public ushort Length { get; }

Property Value

ushort

Methods

Equals(Witness)

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

public bool Equals(Witness other)

Parameters

other Witness

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

Operators

operator ==(Witness, Witness)

public static bool operator ==(Witness left, Witness right)

Parameters

left Witness
right Witness

Returns

bool

implicit operator byte[](Witness)

public static implicit operator byte[](Witness s)

Parameters

s Witness

Returns

byte[]

implicit operator ReadOnlyMemory<byte>(Witness)

public static implicit operator ReadOnlyMemory<byte>(Witness s)

Parameters

s Witness

Returns

ReadOnlyMemory<byte>

implicit operator Witness(byte[])

public static implicit operator Witness(byte[] value)

Parameters

value byte[]

Returns

Witness

operator !=(Witness, Witness)

public static bool operator !=(Witness left, Witness right)

Parameters

left Witness
right Witness

Returns

bool