var config = Configuration.Default.WithDefaultLoader().WithCookies(); // var address = "https://en.wikipedia.org/wiki/List_of_The_Big_Bang_Theory_episodes"; // var document = BrowsingContext.New(config).OpenAsync(address).Result; // <a href="/wiki/The_Big_Bang_Theory" title="The Big Bang Theory">The Big Bang Theory</a> var rowSelector = "a[title='The Big Bang Theory']"; var HtmlAnchorElement = document.QuerySelector<IHtmlAnchorElement>(rowSelector); rowSelector="form#searchform"; var FormElement = doc.<IHtmlFormElement>QuerySelector(rowSelector));
AngleSharp=(.("AngleSharp")); Assembly=(AngleSharp.GetType()); .(Assembly.(),"","GetType"); // AngleSharp_Configuration=(AngleSharp.("AngleSharp.Configuration")); // GetType HtmlParser=(AngleSharp.GetType("AngleSharp.Parser.Html.HtmlParser")); // BrowsingContext = (AngleSharp.("AngleSharp.BrowsingContext")); Configuration=(AngleSharp.("AngleSharp.Configuration")); // ConfigurationExtensions // public static IConfiguration WithDefaultLoader(this IConfiguration configuration, Action<LoaderService> setup = null, IEnumerable<IRequester> requesters = null); // public static IConfiguration WithCookies(this IConfiguration configuration); config = (((Configuration.Default).WithDefaultLoader()).WithCookies()); address = "https://en.wikipedia.org/wiki/List_of_The_Big_Bang_Theory_episodes"; context = (BrowsingContext.New(config.())); // // BrowsingContextExtensions //public static Task<IDocument> OpenAsync(this IBrowsingContext context, string address); document = ((context.OpenAsync(address)).Result); rowSelector = "a[title='The Big Bang Theory']"; // ApiExtensions //public static TElement QuerySelector<TElement>(this IParentNode parent, string selectors) where TElement : class, IElement; HtmlAnchorElement=((document.in(IHtmlAnchorElement.())).QuerySelector(rowSelector)); // ApiExtensions //public static Task<IDocument> ApiExtensions.NavigateAsync<TElement>(this TElement element) where TElement : IUrlUtilities, IElement; // this TElement IElement doc=((HtmlAnchorElement.NavigateAsync()).Result); rowSelector="form#searchform"; FormElement = ((doc.in(IHtmlFormElement.())).QuerySelector(rowSelector)); ("OuterHtml="+FormElement.OuterHtml);
document.QuerySelector<IHtmlAnchorElement>(rowSelector);
HtmlAnchorElement=((document.in(IHtmlAnchorElement.())).QuerySelector(rowSelector));
public K 3<K>(IList<K> param1, int param2, K param3)
List=("System.Collections.Generic.List`1[System.String]"); (.3(List.(),3,"3"));
AngleSharp=(.("AngleSharp")); Assembly=(AngleSharp.GetType()); .(Assembly.(),"","GetType"); // AngleSharp_Configuration=(AngleSharp.("AngleSharp.Configuration")); // GetType HtmlParser=(AngleSharp.GetType("AngleSharp.Parser.Html.HtmlParser"));
public static class { public static string (this ,string Str) { return .()+" "+ Str; } }
// //(, "NetObjectToNative",.Native); // = ("AddIn.NetObjectToNative.LoaderCLR"); // .(CoreClrDir,NetObjectToNative,""); // // CoreClrDir .Net coreclr // NetObjectToNative // // //HttpClient=(.("System.Net.Http",)); //HttpClient=(HttpClient.GetType("System.Net.Http.HttpClient")); // . Dll =(.("TestDllForCoreClr.")); .(.(),"GetStringFromExtensionWithParams",""); // (.("")); // (.GetStringFromExtensionWithParams(" GetStringFromExtensionWithParams"));
public static Task<IDocument> ApiExtensions.NavigateAsync<TElement>(this TElement element) where TElement : IUrlUtilities, IElement;
doc=((HtmlAnchorElement.NavigateAsync()).Result);
=(.(.(),"IEnumerable"));
=(.as("IEnumerable")); =(.GetEnumerator()); // IEnumerator =(.as("IEnumerator"));
Source: https://habr.com/ru/post/307188/
All Articles