Пример #1
0
 private IObjectReference GetParentNode(IHtmlElementTechnical element)
 {
     return(element.GetTechnicalType().GetProperty("parentNode").Get <IObjectReference>(element));
 }
Пример #2
0
 private static T GetParentNode <T>(IHtmlElementTechnical element) where T : class, IHtmlElementTechnical
 {
     return(element.GetTechnicalType().GetProperty("parentNode").Get <IObjectReference>(element).Get <T>());
 }