Table of Contents

Method Read

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Read(string, int)

Reads the newest entries, the newest first: those of the file, then, where it holds fewer than asked for, those of the file of the same name with .old before its extension.

public static IReadOnlyList<CadCrashLogEntry> Read(string path, int count)

Parameters

path string

The crash log; a file that is not there gives no entries.

count int

The most entries to give; above nought.

Returns

IReadOnlyList<CadCrashLogEntry>

The entries, newest first.

Exceptions

ArgumentNullException

Thrown when the path is null.

ArgumentOutOfRangeException

Thrown when the count is not above nought.