Table of Contents

Method TryParse

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

TryParse(string, out CadToolPalettes, out string)

Reads a set from JSON text, as ToJson() wrote it; a value that is not valid falls back to its default with a Warn naming it.

public static bool TryParse(string text, out CadToolPalettes set, out string problem)

Parameters

text string

The text.

set CadToolPalettes

Receives the set, unmodified; null where the text does not read.

problem string

Receives what is wrong where it does not read; null where it does.

Returns

bool

Whether the text read.