mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 12:31:30 -10:00
* LosFormatter.cs: new ctor for 1.1. The default ctor is public. * Page.cs: added ViewStateUserKey and made RegisterclientScriptFile internal. * PageParser.cs: the ctor is public. * PartialCachingAttribute.cs: added new ctor and Shared property. svn path=/trunk/mcs/; revision=21290
60 lines
1.0 KiB
C#
60 lines
1.0 KiB
C#
//
|
|
// System.Web.UI.LosFormatter
|
|
//
|
|
// Authors:
|
|
// Ben Maurer ([email protected])
|
|
//
|
|
// (C) 2003 Ben Maurer
|
|
//
|
|
|
|
using System.IO;
|
|
|
|
|
|
namespace System.Web.UI {
|
|
public sealed class LosFormatter {
|
|
|
|
ObjectStateFormatter osf = new ObjectStateFormatter ();
|
|
|
|
public LosFormatter ()
|
|
{
|
|
}
|
|
|
|
#if NET_1_1
|
|
[MonoTODO]
|
|
public LosFormatter (bool enableMac, string macKeyModifier)
|
|
{
|
|
}
|
|
#endif
|
|
public object Deserialize (Stream stream)
|
|
{
|
|
return osf.Deserialize (stream);
|
|
}
|
|
|
|
public object Deserialize (TextReader input)
|
|
{
|
|
if (input == null)
|
|
throw new ArgumentNullException ("input");
|
|
|
|
return Deserialize (input.ReadToEnd ());
|
|
}
|
|
|
|
public object Deserialize (string input)
|
|
{
|
|
return osf.Deserialize (input);
|
|
}
|
|
|
|
public void Serialize (Stream stream, object value)
|
|
{
|
|
osf.Serialize (stream, value);
|
|
}
|
|
|
|
public void Serialize (TextWriter output, object value)
|
|
{
|
|
if (output == null)
|
|
throw new ArgumentNullException ("output");
|
|
|
|
output.Write (osf.Serialize (value));
|
|
}
|
|
}
|
|
}
|