Collection Initializer .NET 3.5 .
FTA:
( ) # 3.0 , Visual Studio 2008 .NET 3.5 . .
However, you are not limited to adding elements to your class constructor. You can add this at any time, you simply cannot do this using collection initialization.
source
share