// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; namespace Microsoft.AspNetCore.Mvc.Formatters.Xml { /// /// Defines an interface for wrapping objects for serialization or deserialization into xml. /// public interface IWrapperProvider { /// /// Gets the wrapping type. /// Type WrappingType { get; } /// /// Wraps the given object to the wrapping type provided by . /// /// The original non-wrapped object. /// Returns a wrapped object. object Wrap(object original); } }