The MSDN documentation for Automatic Properties (a C# 3 language feature) states that attributes are not valid on automatic properties. This is not true, the following code compiles and works as expected:
public class Data
{
[XmlAttribute]
public int SomeNumber { get; set; }
}
class Program
{
static void Main(string[] [...]