// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
namespace Microsoft.Graph
{
using System.Net.Http;
using System.Text;
///
/// Extension methods for
///
public static class SerializerExtentions
{
///
/// Serialize an object into a object
///
///
///
///
public static HttpContent SerializeAsJsonContent(this ISerializer serializer, object source )
{
var stringContent = serializer.SerializeObject(source);
return new StringContent(stringContent, Encoding.UTF8, "application/json");
}
}
}