本文整理匯總了C#中Newtonsoft.Json.Linq.JArray.CreateReader方法的典型用法代碼示例。如果您正苦於以下問題:C# JArray.CreateReader方法的具體用法?C# JArray.CreateReader怎麽用?C# JArray.CreateReader使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Newtonsoft.Json.Linq.JArray
的用法示例。
在下文中一共展示了JArray.CreateReader方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Curatedfeeds
JsonReader Curatedfeeds()
{
// array-1 of array-2 where array-2 is feed-name first element and array of package-id second element
// e.g. [["feed-x",["package-a","package-b"]],["feed-y,["package-a","package-b","package-c"]]]
var curatedfeeds = new JArray();
return curatedfeeds.CreateReader();
}
示例2: Downloads
JsonReader Downloads()
{
// array-1 of array-2 where array-2 is package-id first element and remaining elements are 2 element array of version, downloads
// e.g. [["package-a",["1.0",100],["2.0",150]],["package-b",["1.0",64],["2.0",128],["3.5",256]]]
var downloads = new JArray();
return downloads.CreateReader();
}
示例3: Owners
JsonReader Owners()
{
// array-1 of array-2 where array-2 is package-id first element and array of owners second element
// e.g. [["package-a",["owner-x","owner-y"]],["package-b",["owner-z"]]]
var owners = new JArray();
return owners.CreateReader();
}