Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: TElement FormatSimpleValue(object)

  • Declared in: RT.Serialization.IClassifyFormat<TElement>
  • Interface method
  • Abstract

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

objectvalue 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.