Controllers/AbstractExportController.cs
/// <summary>
/// Export a LibLSD type as it was originally.
/// </summary>
/// <param name="original">The LibLSD type (MOM, TIX, TOD, etc).</param>
/// <param name="filePath">The path to write the file to.</param>
Export a LibLSD type as it was originally.
Export a LibLSD type as it was originally .
public void ExportOriginal(IWriteable original, string filePath)
        {
            Log.Information($"Exporting original to: {filePath}");
            using (BinaryWriter bw = new BinaryWriter(File.Open(filePath, FileMode.Create)))
            {
                original.Write(bw);
            }
        }
public void ExportOriginal ( IWriteable original , string filePath ) { Log . Information ( $" Exporting original to:  { filePath } " ) ; using ( BinaryWriter bw = new BinaryWriter ( File . Open ( filePath , FileMode . Create ) ) ) { original . Write ( bw ) ; } }
Export a LibLSD type as it was originally.
Export a LibLSD type as it was originally .
original
IWriteable
The LibLSD type (MOM, TIX, TOD, etc).
The LibLSD type ( MOM TIX TOD etc ) .
filePath
string
The path to write the file to.
The path to write the file to .