1 of 11

Collections (Advance)

Name: Sheikh Thanbir Alam

Deg: Senior Software Programmer

Org: Army War Game Center, BD Army

2 of 11

Suggested IDE for C#

  1. Visual Studio (Desktop/Laptop→Click to download)
  2. Try Dot Net (Web→Click to view)
  3. Dot Net Fiddle (Web→Click to view)

3 of 11

Dictionary

4 of 11

Example:

5 of 11

Tuple

A tuple is a data structure that contains a sequence of elements of different data types.

Question from previous session⇒

  1. Is it possible to keep this whole various data types into List with a single data type?

(Id: 1451, Name: Thanbir, Section: A, Blood: B+)

(Id: 5999, Name: Fuhad, Section: A, Blood: A+)

(Id: 1598, Name: Rana, Section: B, Blood: O+)

6 of 11

How to keep all previous info into List?

7 of 11

Stack

8 of 11

Example

9 of 11

Queue

10 of 11

Example

11 of 11