SimpleDataTypesSerializer Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This class implements MessagePack serialization for simple data types that can be sent both from the extension to Visual Studio, and from Visual Studio to the extension. This includes the basic data types provided by .NET and nullable versions of such data types.
public static class SimpleDataTypesSerializer
type SimpleDataTypesSerializer = class
Public Class SimpleDataTypesSerializer
- Inheritance
-
SimpleDataTypesSerializer
Remarks
MessagePack would normally serialized numeric data using the smallest format possible (e.g., (int)5
would be serialized as a byte
). SimpleDataTypesSerializer instead serializes numerical data in the format corresponding to their original data type in order to preserve information about the original data type.
Some data like char
, DateTime of type Local and nullable values use a custom format.
Methods
GetSerializeMethod(Type, Boolean, DataTypeCode, Boolean) |
Retrieves a delegate able to serialize values of type |
GetSerializeMethod(Type) |
Retrieves a delegate able to serialize values of type |