Skip to content
AtomicReps

Navigation

09/29Computer Science

C# Collections & LINQ.

The containers a C# program reaches for and the query operators that read them.

  • C# Collections & LINQ · 1 of 3

    Dictionaries & sets

    What does a set hold?

  • C# Collections & LINQ · 2 of 3

    LINQ performance

    What does a chain pay each time it is walked?

  • C# Collections & LINQ · 3 of 3

    Deferred execution

    A count is taken twice in one request and the numbers disagree. What does the measurement point at?

    typescript
    using System.Linq;var nums = new List<int> { 1, 2 };var q = nums.Where(n => n > 0);Console.WriteLine(q.Count());nums.Add(3);Console.WriteLine(q.Count());

Three of the 1,230 C# Collections & LINQ questions.

Keep going with C# Collections & LINQ, free
Next topic · 10/29C# Memory & Types.