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;
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;