﻿// Decompiled with JetBrains decompiler
// Type: System.Web.UI.IStateFormatter
// Assembly: System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// MVID: 7E68A73E-4066-4F24-AB0A-F147209F50EC
// Assembly location: C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Web.dll

namespace System.Web.UI
{
  /// <summary>
  /// Defines methods that a type implements to serialize and deserialize an object graph.
  /// </summary>
  public interface IStateFormatter
  {
    /// <summary>
    /// Deserializes an object state graph from its serialized string form.
    /// </summary>
    /// 
    /// <returns>
    /// An object that represents the state of an ASP.NET server control.
    /// </returns>
    /// <param name="serializedState">A string that the <see cref="T:System.Web.UI.IStateFormatter"/> deserializes into an initialized object.</param>
    object Deserialize(string serializedState);

    /// <summary>
    /// Serializes ASP.NET Web server control state to string form.
    /// </summary>
    /// 
    /// <returns>
    /// A string that represents a Web server control's view state.
    /// </returns>
    /// <param name="state">The object that represents the view state of the Web server control to serialize to string form.</param>
    string Serialize(object state);
  }
}
