sdk/dotnet/test/Datasync.Common.Test/BaseTest.cs
/// <summary>
/// Converts an object into a <see cref="JObject"/>.
/// </summary>
/// <typeparam name="T">The type of the object.</typeparam>
/// <param name="obj">The object.</param>
/// <returns>The equivalent <see cref="JObject"/></returns>
Converts an object into a .
Converts an object into a .
protected static JObject CreateJsonDocument<T>(T obj)
        {
            var settings = new DatasyncSerializerSettings();
            return JObject.FromObject(obj, settings.GetSerializerFromSettings());
        }
protected static JObject CreateJsonDocument < T > ( T obj ) { var settings = new DatasyncSerializerSettings ( ) ; return JObject . FromObject ( obj , settings . GetSerializerFromSettings ( ) ) ; }
Converts an object into a .
Converts an object into a .
None
obj
T
None
typeparam
The type of the object.
The type of the object .