C# (CSharp) XElement.AddAttributeIfHasValue - 4 examples found. These are the top rated real world C# (CSharp) examples of XElement.AddAttributeIfHasValue extracted from open source projects. You can rate examples to help us improve the quality of examples.