Пример #1
0
 /// <summary>
 /// Loads page information from JSON.
 /// </summary>
 /// <param name="page"></param>
 /// <param name="json">query.pages.xxx property value.</param>
 /// <param name="options"></param>
 public static void PopulatePageFromJson(WikiPage page, JObject json, IWikiPageQueryProvider options)
 {
     if (page == null)
     {
         throw new ArgumentNullException(nameof(page));
     }
     if (json == null)
     {
         throw new ArgumentNullException(nameof(json));
     }
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     page.OnLoadPageInfo(json, options);
 }