sdk/dotnet/src/Microsoft.Datasync.Client/Serialization/ServiceSerializer.cs
/// <summary>
/// Serializes an instance into a JSON string.
/// </summary>
/// <param name="instance">The instance to serialize.</param>
/// <param name="serializer">The <see cref="JsonSerializer"/> to use.</param>
/// <returns>The serialized instance.</returns>
Serializes an instance into a JSON string.
Serializes an instance into a JSON string .
public JToken Serialize(object instance, JsonSerializer serializer = null)
        {
            Arguments.IsNotNull(instance, nameof(instance));
            return JToken.FromObject(instance, serializer ?? SerializerSettings.GetSerializerFromSettings());
        }
public JToken Serialize ( object instance , JsonSerializer serializer = null ) { Arguments . IsNotNull ( instance , nameof ( instance ) ) ; return JToken . FromObject ( instance , serializer ?? SerializerSettings . GetSerializerFromSettings ( ) ) ; }
Serializes an instance into a JSON string.
Serializes an instance into a JSON string .
The serialized instance.
The serialized instance .
instance
object
The instance to serialize.
The instance to serialize .
serializer
JsonSerializer
The  to use.
The to use .