C# to Vb.net conversion

  • Thread starter Thread starter dusan drobac
  • Start date Start date
D

dusan drobac

How to convert this while clause to vb.net

private void LoadChildren(XmlNode parent)
{
XmlNode lastNode = null;
while (reader.Read() &&
((lastNode = this.ReadCurrentNode()) != null))
{
if (parent.NodeType != XmlNodeType.Document)
{
parent.AppendChild(lastNode);
}
}
}

and this statement also

bool isEmpty = currentElem.IsEmpty = reader.IsEmptyElement;
 
Back
Top