Persistate API documentation
ParseMultiValue Method (input, sourcePairs, combinable)
NamespacesPersistateUtlParseMultiValue(String, array<ISourcePair>[]()[][], Boolean)

[This is preliminary documentation and is subject to change.]

Parses a string value for a struct generated for a multi-value data class. This method is usually called from generated code.
Declaration Syntax
C#
public static int ParseMultiValue(
	string input,
	ISourcePair[] sourcePairs,
	bool combinable
)
Parameters
input (String)
The string to parse.
sourcePairs (array<ISourcePair>[]()[][])
The generated ISourcePair array for the generated struct.
combinable (Boolean)
True if the generated multi-value struct can take combinable values.
Return Value
An integer with the result of the parsed string or 0 if the parse failed. This value can be implicitly converted to the target struct type.
Remarks

The string should be the same as in the original definition file. For example, if the data class was defined as A thingy takes values wibble, small wobble, big wobble., then the string "big wobble" will parse and return the value 3. The parse is not case sensitive. If the data class is combinable, several text values can be supplied in the input string, delimited with either ',' or '|'.

Assembly: Persistate (Module: Persistate) Version: 0.6.1.20 (0.6.1.20)