コード例 #1
0
ファイル: ApiExtensions.cs プロジェクト: zzc000/AngleSharp
 /// <summary>
 /// Submits the form of the element by decomposing the object into a dictionary
 /// that contains its properties as name value pairs.
 /// </summary>
 /// <param name="element">The element to submit its form.</param>
 /// <param name="fields">The optional fields to use as values.</param>
 /// <returns>The task eventually resulting in the response.</returns>
 public static Task <IDocument> SubmitAsync(this IHtmlElement element, Object fields = null)
 {
     return(element.SubmitAsync(fields.ToDictionary()));
 }