Collection initializer in C# | C# Bangla Tutorial | Advanced C#



Collection Initializer


Collection initializer is also similar to object initializers. In other words, generally, we used the Add() method to add elements in collections, but using a collection initializer you can add elements without using Add() method.

إرسال تعليق

أحدث أقدم