Vote UpVote

C#: any c# – .NET Enumeration allows comma in the last field – Stack Overflow

The Wiert Corner – Thanks Nick Craver for answering this on StackOverflow. Array initializers can be specified in field declarations (§17.4), local variable declarations (§15.5.1), and array creation expressions (§ The array initializer can end in a comma, which makes some things way easier (boy, I wish I had this in other programming languages). From Nick’s answer: It has no special meaning, just the way the compiler works, it’s mainly for this reason: [FlagsAttribute] public enum DependencyPropertyOptions : byte { Default = 1, ReadOnly = 2, Optional = 4, DelegateProperty = 32, Metadata ...
Favorite? Off-Topic? jpluimers @ 2012-12-06 06:00


Visits: 535
Votes: 0
Favorites: 0
Off-Topic: 1

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)