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