NET:LavishScriptAPI.LavishScript.DataParse

From Lavish Software Wiki
Jump to: navigation, search

Overview

Parses a complete LavishScript data sequence, reducing its final object (if any) to text and converting the resulting text to a given object type.

Reference Library

Lavish.InnerSpace.dll

Fully Qualified Name

LavishScriptAPI.LavishScript.DataParse

Declaration

static public bool DataParse<T>(string toParse, ref T obj)

Parameters

  • string toParse
A complete LavishScript data sequence, beginning with ${ and ending with }
  • ref T obj
An reference to an object of the given type (generic) to be set

Return Value

  • bool
true if the LavishScript data sequence successfully reduced an object to text, thusly setting the object reference, or false if the data sequence ended with no object (which usually results in NULL in LavishScript)

Examples

C#

string LavishScriptVersion = string.Empty;
LavishScript.DataParse<string>("${LavishScript.Version}", ref LavishScriptVersion);

See Also