Persistate API documentation
TypeFor Method (val)

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

Parses the given string as a literal value and returns the appropriate base data type.
Declaration Syntax
public static BaseDataType TypeFor(
	string val
val (String)
The value to parse.
Return Value
The base data type indicated by the value parsed. If the value does not correspond to a valid literal, _undefined_ is returned.
The value can be a text, numeric or datetime literal. Text literals are bounded by single or double quotes. For numeric literals. it finds the 'minimum' type which can hold the value. Eg 214 will give Byte. Integral types are returned in preference to floating point and floating point in preference to Decimal.

Assembly: Persistate (Module: Persistate) Version: (