I have two instances of XElement:
var el1 = new System.Xml.Linq.XElement("xel", null); var el2 = new System.Xml.Linq.XElement("xel", string.Empty);
el1 as follows:
<xel />
el2 as follows:
<xel></xel>
However, the Value property is equal to string.Empty .
I can come up with a lot of hacks to distinguish null from string.Empty from XElement , but is there something built into the framework to make it that I am missing?
source share