Why is this .NET enumeration allowed to have a comma in the last field?
Does this have any special meaning?
[FlagsAttribute]
public enum DependencyPropertyOptions : byte
{
Default = 1,
ReadOnly = 2,
Optional = 4,
DelegateProperty = 32,
Metadata = 8,
NonSerialized = 16,
}
It has no special meaning, just the way the compiler works, it’s mainly for this reason:
By comment request: This info comes straight out of the C# Specification (Page 355/Section 17.7)