Documentation
Table of Contents

Method Parse

Namespace
IntentSharp.Mapping
Assembly
IntentSharp.dll

Parse(string)

Reads a row written by ToJson(), such as one a store of your own kept. Throws MappingFormatException naming the problem when the text is not JSON, a required member is missing or null, a step names an op or an argument this library does not know, or a member has the wrong type. Loading does not check that the steps fit the shapes; a store's row is checked again before it runs.

public static CompiledMapping Parse(string json)

Parameters

json string

The row's JSON text.

Returns

CompiledMapping

Exceptions

ArgumentNullException

json is null.

MappingFormatException

The text is not a compiled mapping this library can load.