Well I found out what was wrong, I was using .Length( ) instead of .Length
I'm trying to get the length of content of an XML node using this code currently:
Code:
if ( Convert.ToString(oXML.SelectSingleNode(oDoc, buildString)).Length() > 0 )
{
sMailMessage += "class" + strCount + nodeEnd + " = " + Convert.ToString(oXML.SelectSingleNode(oDoc, buildString)) + "\n";
}
But VS is complaining about .Length() with
Code:
'string.Length' denotes a 'property' where a 'method' was expected
What am I doing wrong, and is there a simple way to get the length without copying the data out of the XML node into a variable beforehand?