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:
But VS is complaining about .Length() with
if ( Convert.ToString(oXML.SelectSingleNode(oDoc, buildString)).Length() > 0 )
sMailMessage += "class" + strCount + nodeEnd + " = " + Convert.ToString(oXML.SelectSingleNode(oDoc, buildString)) + "\n";
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?
'string.Length' denotes a 'property' where a 'method' was expected