-Fixed compiler warnings

-Changed PopulateObjectAsync to be obsolete
This commit is contained in:
James Newton-King
2014-01-30 00:36:23 +13:00
parent 4793c7b5da
commit b3369a45cd
2 changed files with 17 additions and 0 deletions
+1
View File
@@ -949,6 +949,7 @@ namespace Newtonsoft.Json
/// <returns>
/// A task that represents the asynchronous populate operation.
/// </returns>
[ObsoleteAttribute("PopulateObjectAsync is obsolete. Use the Task.Factory.StartNew method to populate an object with JSON values asynchronously: Task.Factory.StartNew(() => PopulateObject(value, target, settings))")]
public static Task PopulateObjectAsync(string value, object target, JsonSerializerSettings settings)
{
return Task.Factory.StartNew(() => PopulateObject(value, target, settings));