I am looking at somebody elses C# code and before a public enum there are the following lines:
[System.CodeDom.Compiler.GeneratedCodeAttribute(\"xsd\", \"4.0
From the documentation:
Indicates that a class can be serialized
See the documentation for an example.