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;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top