Declaration
public TElement FormatSimpleValue(
object value
)Summary
Generates an element that represents a
byte,
sbyte,
short,
ushort,
int,
uint,
long,
ulong,
BigInteger,
decimal,
float,
double,
bool,
char,
string,
DateTime or an enum value.
Parameters
| object | value |
The value to encode. |
Returns
The serialized form of the
value.
Remarks
The returned element should be recognized by
IClassifyFormat<TElement>.GetSimpleValue(TElement), but need not necessarily decode to the
same type, as long as
ExactConvert will convert it to the correct value.