BTI Beyond The Interviews

Languages · 10 sections

C#

Modern C# — LINQ, async/await, generics, and the type system that powers .NET interviews.

Premium · preview 110 cards Updated 24 Oct 2026
Free to preview. The first 3 cards and the full outline are below — the rest of this sheet is part of the Languages bundle.

What's inside

Preview — first 3 of 110 cards

Value vs reference types

Value types (int, struct, enum, bool) are copied by value and usually stack/inline. Reference types (class, string, arrays, delegates) live on heap and are accessed via references. struct is value type, class is reference type.

struct Point { public int X, Y; }
Point p1 = new Point { X = 1 };
Point p2 = p1; // copy

class Node { public int Val; }
Node n1 = new Node { Val = 1 };
Node n2 = n1; // same object

var / implicit typing

var infers the type at compile time; variable is still statically typed. Requires initializer. Use for obvious types; avoid when type isn't clear from RHS.

var list = new List<int>(); // List<int>
var x = 5;                  // int
// var y;                   // error: no initializer

Nullable value types (T?)

Makes a value type nullable. HasValue/Value. ?? null-coalescing and lifted operators handle nulls safely. (Null-conditional ?. applies to reference types; see NRT.)

int? n = null;
int x = n ?? 0;        // 0
int? y = n + 5;        // null (lifted)
bool has = n.HasValue; // false

107 more cards in this sheet

Unlock the Languages bundle — ₹399

One-time payment. Unlocks this sheet and 7 other sheets in the bundle, plus a typeset PDF of each.

Unlock the bundle See all bundles

Or get all 76 sheets for ₹999 — one payment, every future sheet included.