NET:LavishScriptAPI.LavishScript.DataParse
Jump to navigation
Jump to search
Contents
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
Fully Qualified Name
- LavishScriptAPI.LavishScript.DataParse
- LavishScriptAPI namespace
- LavishScript class
- DataParse function
- LavishScript class
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);