public IEnumerator <GeckoNode> GetEnumerator()
 {
     while (!_xpathResult.InvalidIteratorState)
     {
         var result = _xpathResult.IterateNext().Wrap(GeckoNode.Create);
         if (result == null)
         {
             yield break;
         }
         yield return(result);
     }
 }
 public IEnumerator <GeckoNode> GetEnumerator()
 {
     while (!_xpathResult.InvalidIteratorState)
     {
         var result = Gecko.Interop.ExtensionMethods.Wrap(_xpathResult.IterateNext(), GeckoNode.Create);
         if (result == null)
         {
             yield break;
         }
         yield return(result);
     }
 }