Skip to content
AtomicReps

Navigation

11/29Computer Science

C# Programming.

The C# language: its type system, its members, its patterns and the rules the compiler enforces.

  • C# Programming · 1 of 3

    Pattern matching

    What do the joining words in a pattern allow?

  • C# Programming · 2 of 3

    Extension methods

    Which line of that program proves the body had not yet run?

    typescript
    using System;using System.Collections.Generic;using System.Linq;static class Help{    public static IEnumerable<int> Doubled(this IEnumerable<int> xs)    {        Console.WriteLine("walking");        foreach (int x in xs) yield return x * 2;    }}class P{    static void Main()    {        var q = new[] { 1, 2, 3 }.Doubled();        Console.WriteLine("built");        Console.WriteLine(string.Join(",", q));        Console.WriteLine(q.Count());    }}
  • C# Programming · 3 of 3

    Lambdas

    What is the honest summary of a closure?

Three of the 1,760 C# Programming questions.

Keep going with C# Programming, free
Next topic · 12/29C# Tooling & Runtime.