本文整理汇总了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();
}