a few minor changes

This commit is contained in:
UbitUmarov
2022-02-08 00:24:15 +00:00
parent c731f2df47
commit fc415a895a
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -148,8 +148,7 @@ namespace Nwc.XmlRpc
/// <returns><c>XmlRpcRequest</c> object resulting from the parse.</returns>
public object Deserialize(string xmlData)
{
StringReader sr = new StringReader(xmlData);
return Deserialize(sr);
return Deserialize(new StringReader(xmlData));
}
/// <summary>Pop a Context of the stack, an Array or Struct has closed.</summary>
@@ -27,7 +27,7 @@ namespace Nwc.XmlRpc
/// <param name="output">An <c>XmlTextWriter</c> stream to write data to.</param>
/// <param name="obj">An <c>Object</c> to serialize.</param>
/// <seealso cref="XmlRpcResponse"/>
override public void Serialize(XmlTextWriter output,Object obj)
override public void Serialize(XmlTextWriter output, Object obj)
{
XmlRpcResponse response = (XmlRpcResponse)obj;