Files
mono/mcs/class/System.Web/System.Web.UI/LosFormatter.cs
T
Gonzalo Paniagua Javier a2d15941df 2003-12-18 Gonzalo Paniagua Javier <[email protected]>
* 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
2003-12-18 01:15:58 +00:00

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));
}
}
}