21 |
* |
* |
22 |
* -------------------------------------------------------------------------- |
* -------------------------------------------------------------------------- |
23 |
*/ |
*/ |
24 |
|
using System.Runtime.Serialization; |
25 |
|
using System.IO; |
26 |
|
|
27 |
namespace DotGNU.XmlRpc.Serialization |
namespace DotGNU.XmlRpc.Serialization |
28 |
{ |
{ |
29 |
public sealed class MethodResponseFormatter |
public sealed class MethodResponseFormatter : IFormatter |
30 |
{ |
{ |
31 |
// returns the XML representation of this array TODO: |
public object Deserialize( Stream stream ) |
|
// formatting options for indented format. This may have to be |
|
|
// moved into the XmlRpcWriter... we'll see |
|
|
public override string ToString() |
|
32 |
{ |
{ |
33 |
return "<array></array>"; |
return null; |
34 |
} |
} |
35 |
|
|
36 |
|
public void Serialize( Stream stream, object o ) |
37 |
|
{ |
38 |
|
} |
39 |
|
|
40 |
|
public SerializationBinder Binder |
41 |
|
{ |
42 |
|
get{ |
43 |
|
return null; |
44 |
|
} |
45 |
|
set{ |
46 |
|
} |
47 |
|
} |
48 |
|
|
49 |
|
public StreamingContext Context |
50 |
|
{ |
51 |
|
get{ |
52 |
|
return new StreamingContext(); |
53 |
|
} |
54 |
|
set { |
55 |
|
} |
56 |
|
} |
57 |
|
|
58 |
|
public ISurrogateSelector SurrogateSelector |
59 |
|
{ |
60 |
|
get { |
61 |
|
return null; |
62 |
|
|
63 |
|
} |
64 |
|
set { |
65 |
|
} |
66 |
|
} |
67 |
|
|
68 |
} |
} |
69 |
} |
} |
70 |
|
|