Partager via


SerializationHelpers Class

Definition

Class containing static methods useful for serialization tasks

public class SerializationHelpers
type SerializationHelpers = class
Public Class SerializationHelpers
Inheritance
SerializationHelpers

Constructors

SerializationHelpers()

Methods

SetSentinel(Hashtable)

SetSentinel methods deep-grovel the given object looking for properties with null values. Every such property is replaced with a DateTime with a Year value of 1. This sentinel value convinces the autorest serializer to serialize a null value.

SetSentinel(IDictionary<String,Object>)

SetSentinel methods deep-grovel the given object looking for properties with null values. Every such property is replaced with a DateTime with a Year value of 1. This sentinel value convinces the autorest serializer to serialize a null value.

SetSentinel(Object[])

SetSentinel methods deep-grovel the given object looking for properties with null values. Every such property is replaced with a DateTime with a Year value of 1. This sentinel value convinces the autorest serializer to serialize a null value.

Applies to