XmlName is a value type therefore can never be null. mcs picked this up as a warning.