-Fix JsonSerializer.Deserialize to take a TextReader instead of a StringReader

This commit is contained in:
JamesNK
2008-09-08 09:03:21 +00:00
parent d193ae37be
commit ce0148d67f
2 changed files with 55 additions and 5 deletions
+2 -2
View File
@@ -177,10 +177,10 @@ namespace Newtonsoft.Json
/// Deserializes the Json structure contained by the specified <see cref="StringReader"/>
/// into an instance of the specified type.
/// </summary>
/// <param name="reader">The <see cref="JsonReader"/> containing the object.</param>
/// <param name="reader">The <see cref="TextReader"/> containing the object.</param>
/// <param name="objectType">The <see cref="Type"/> of object being deserialized.</param>
/// <returns>The instance of <paramref name="objectType"/> being deserialized.</returns>
public object Deserialize(StringReader reader, Type objectType)
public object Deserialize(TextReader reader, Type objectType)
{
return Deserialize(new JsonTextReader(reader), objectType);
}