replaced Json.Serialize with ToJson extension method.

This commit is contained in:
Keivan Beigi 2013-05-29 14:29:51 -07:00
commit 8bdf8c31f0
10 changed files with 14 additions and 19 deletions

View file

@ -35,7 +35,7 @@ namespace NzbDrone.Common.Serializer
return JsonConvert.DeserializeObject(json, type);
}
public static string Serialize(object obj)
public static string ToJson(this object obj)
{
return JsonConvert.SerializeObject(obj);
}