Skip to content

SMSCReadResult

AutumnSky1010 edited this page Jun 15, 2024 · 2 revisions

Class SMSCReadResult

Definition

Namespace: SoundMaker.ScoreData.SMSC
Assembly: SoundMaker.dll

Result of reading SMSC data.

public class SMSCReadResult

Version

2.3.0 ~

Inheritance

Object -> SMSCReadReslt

Properties

Errors

Declaration

public IReadOnlyList<Error> Errors { get; }

Property Value

Type Desctiption
IReadOnlyList<Error> Errors when reading SMSC.

IsSuccess

Declaration

public bool IsSuccess => Errors.Count is 0;

Property Value

Type Desctiption
bool Whether the reading was successful.

Methods

TryGetValue(out IReadOnlyList)

Returns whether the reading was successful and, if successful, returns the result. If it fails, an empty array will be in value.
Declaration

public bool TryGetValue(out IReadOnlyList<ISoundComponent> value)

Parameters

Type Desctiption
IReadOnlyList<ISoundComponent> On success: result, On failure: empty array.

Returns

Type Desctiption
bool On success: true, On failure: false.

Unwrap()

Returns the result assuming the reading was successful. If it fails or empty, an empty array is returned.
Declaration

public IReadOnlyList<ISoundComponent> Unwrap()

Returns

Type Desctiption
IEnumerable<ISoundComponent> On success: result, On failure: empty array
Clone this wiki locally