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
Methods
Equals(Witness)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Witness other)
Parameters
other
WitnessAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
obj
objectThe 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
Returns
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
implicit operator Witness(byte[])
public static implicit operator Witness(byte[] value)
Parameters
value
byte[]
Returns
operator !=(Witness, Witness)
public static bool operator !=(Witness left, Witness right)