blob: 7aa294b630292a27c1943759308523d374d2b2b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
//
// System.Web.UI.LosFormatter
//
// Authors:
// Ben Maurer (bmaurer@users.sourceforge.net)
//
// (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));
}
}
}
|