Persistate API documentation
TypeFor Method (val)
NamespacesPersistateBaseDataTypeTypeFor(String)

[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
C#
public static BaseDataType TypeFor(
	string val
)
Parameters
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.
Remarks
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: 0.6.1.20 (0.6.1.20)