Collection Initializers:
Collection Initializers
suggest changeThe 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.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents
17Regex
18DateTime
19Arrays
21Enum
22Tuples
24GUID
26Collection Initializers
27Looping
36Casting
46Methods
51Keywords
57Generics
79Overflow
88Events
92Structs
102Polymorphism
103Immutability
104Indexer
106Stream
107Timers
108Stopwatches
109Threading
111Async Await
123ICloneable
124IComparable
126Using SQLite
127Caching
135Pointers
145Cryptography
147C# Script
155Contributors