-Fix ToString(JsonConverter[]) overload on JToken

-Ensure JavaScriptDateTimeConverter converts nullable DateTimes
-Make JsonTypeReflector thread safe
This commit is contained in:
JamesNK
2009-02-27 06:12:37 +00:00
parent eedb01645a
commit 6068b06744
5 changed files with 134 additions and 14 deletions
+2 -2
View File
@@ -327,14 +327,14 @@ namespace Newtonsoft.Json.Linq
/// </summary>
/// <param name="converters">A collection of <see cref="JsonConverter"/> which will be used when writing the token.</param>
/// <returns></returns>
private string ToString(params JsonConverter[] converters)
public string ToString(params JsonConverter[] converters)
{
using (StringWriter sw = new StringWriter(CultureInfo.InvariantCulture))
{
JsonTextWriter jw = new JsonTextWriter(sw);
jw.Formatting = Formatting.Indented;
WriteTo(jw);
WriteTo(jw, converters);
return sw.ToString();
}