[This is preliminary documentation and is subject to change.]
The SlimSerializer type exposes the following members.Constructors
| Name | Description | |
|---|---|---|
| SlimSerializer | Initializes a new instance of the SlimSerializer class | |
| SlimSerializer( IEnumerable Type ) | Initializes a new instance of the SlimSerializer class | |
| SlimSerializer(SlimFormat) | Initializes a new instance of the SlimSerializer class | |
| SlimSerializer(SlimFormat, IEnumerable Type ) | Initializes a new instance of the SlimSerializer class | |
| SlimSerializer(TypeRegistry, SlimFormat) | Initializes a new instance of the SlimSerializer class |
Methods
| Name | Description | |
|---|---|---|
| Deserialize | ||
Determines whether the specified object is equal to the current object. (Inherited from | ||
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from | ||
Serves as the default hash function. (Inherited from | ||
Gets the (Inherited from | ||
Creates a shallow copy of the current (Inherited from | ||
| ResetCallBatch |
Resets type registry to initial state (which is based on global types) for TypeMode = "Batch",
otherwise does nothing. This method is not thread-safe
| |
| Serialize | ||
Returns a string that represents the current object. (Inherited from |
Extension Methods
Fields
| Name | Description | |
|---|---|---|
| __globalTypeRegistry | ||
| HEADER | ||
| Owner |
Associates arbitrary owner object with this instance. Slim serializer does not use this field internally for any purpose
|
Properties
| Name | Description | |
|---|---|---|
| BatchTypeRegistry |
ADVANCED FEATURE! Developers do not use.
Returns type registry used in batch.
This call is only valid in TypeMode = "Batch" and is inherently not thread-safe.
Be careful not to mutate the returned object
| |
| BatchTypesAdded |
Returns true if last call to Serialize or Deserialize in batch mode added more types to type registry.
This call is only valid in TypeMode = "Batch" and is inherently not thread-safe
| |
| Format | ||
| IsThreadSafe |
Returns true when TypeMode is "PerCall"
| |
| TypeMode |
Gets/sets how serializer handles type information between calls to Serialize/Deserialize.
Setting this to "Batch" makes this serializer instance not thread-safe for calling Serialize/Deserialize.
This property itself is not thread-safe, that is - it should be only set once by control/initiating thread
|
See Also