IWrapperProvider Interface

Summary

Defines an interface for wrapping objects for serialization or deserialization into xml.

Syntax

public interface IWrapperProvider

GitHub

View on GitHub

interface Microsoft.AspNet.Mvc.Xml.IWrapperProvider

Properties

WrappingType()

Gets the wrapping type.

Return type:System.Type
Type WrappingType { get; }

Methods

Wrap(System.Object)

Wraps the given object to the wrapping type provided by [Microsoft.AspNet.Mvc.Xml.IWrapperProvider.WrappingType](Microsoft.AspNet.Mvc.Xml.IWrapperProvider.yml).

Arguments:
  • original (System.Object) – The original non-wrapped object.
Return type:

System.Object

Returns:

Returns a wrapped object.

object Wrap(object original)