Essential C#  Suggest an edit

Collection Initializers

The only requirement for an object to be initialized using this syntactic sugar is that the type implements System.Collections.IEnumerable and the Add method. Although we call it a collection initializer, the object does not have to be an collection.


Table Of Contents
22 Enum
25 GUID
27 Collection Initializers
107 Stream
108 Timers
  ↑ ↓ to navigate     ↵ to select     Esc to close