Class TrackExtractResult

Namespace
CHDSharp.Models
Assembly
CHDSharpLib.dll

Represents the result of extracting a single track from a CD/GD-ROM CHD image.

public sealed record TrackExtractResult : IEquatable<TrackExtractResult>
Inheritance
TrackExtractResult
Implements
Inherited Members

Constructors

TrackExtractResult(int, string?, ChdError)

Creates a new TrackExtractResult with the given track number, file path, and error code.

public TrackExtractResult(int trackNumber, string? filePath, ChdError error)

Parameters

trackNumber int
filePath string
error ChdError

Properties

Error

The error code for this track. Chderrnone on success.

public ChdError Error { get; init; }

Property Value

ChdError

FilePath

Path to the extracted track file, or null if extraction failed.

public string? FilePath { get; init; }

Property Value

string

IsSuccess

true if this track was extracted successfully (Error is Chderrnone).

public bool IsSuccess { get; }

Property Value

bool

TrackNumber

1-based track number.

public int TrackNumber { get; init; }

Property Value

int