Class ReadResult
- Namespace
- CStructSharp.Values
- Assembly
- CStructSharp.dll
The outcome of a debug value read: the selected value exactly as ReadValue returns it, plus one
DebugData record per value the reader produced, in read order.
public sealed record ReadResult : IEquatable<ReadResult>
- Inheritance
-
ReadResult
- Implements
- Inherited Members
Constructors
ReadResult(object?, IReadOnlyList<DebugData>)
The outcome of a debug value read: the selected value exactly as ReadValue returns it, plus one
DebugData record per value the reader produced, in read order.
public ReadResult(object? Value, IReadOnlyList<DebugData> Debug)
Parameters
ValueobjectThe value at the path; the same object
ReadValuewould return for the same path.DebugIReadOnlyList<DebugData>The byte range, path, type, and decoded value of every item read.
Properties
Debug
The byte range, path, type, and decoded value of every item read.
public IReadOnlyList<DebugData> Debug { get; init; }
Property Value
Value
The value at the path; the same object ReadValue would return for the same path.
public object? Value { get; init; }
Property Value
Methods
Deconstruct(out object?, out IReadOnlyList<DebugData>)
Splits the result into its value and its debug records, in that order.
public void Deconstruct(out object? value, out IReadOnlyList<DebugData> debug)
Parameters
valueobjectReceives Value.
debugIReadOnlyList<DebugData>Receives Debug.
Equals(ReadResult?)
public bool Equals(ReadResult? other)
Parameters
otherReadResult
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ReadResult?, ReadResult?)
public static bool operator ==(ReadResult? left, ReadResult? right)
Parameters
leftReadResultrightReadResult
Returns
operator !=(ReadResult?, ReadResult?)
public static bool operator !=(ReadResult? left, ReadResult? right)
Parameters
leftReadResultrightReadResult