In this example which uses a C# record rather than a class, the XmlAttribute attribute is ignored when serializing using the standard XmlSerializer. Why is this?
public record Person (
string Name,
[XmlAttribute("dte_created")]
DateTime CreatedAt
) {
// parameterless ctor required for xml serializer
public Person() : this(null, DateTime.MinValue) {}
};