// ------------------------------------------------------------------------------ // 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; using Newtonsoft.Json.Converters; /// /// Handles resolving interfaces to the correct concrete class during serialization/deserialization. /// /// The concrete instance type. public class InterfaceConverter : CustomCreationConverter where T : new() { /// /// Create a new object of type T. /// /// The type of object to create. /// public override T Create(Type objectType) { return new T(); } } }