Back In the print window choose "Save as PDF" as the destination
NOTE.CS

C# Keywords Quick Reference

1 topic ยท 28 Nov 2026
1

C# Keywords Quick Reference

C#
KeywordMeaning
varType inferred at compile time (still strongly typed)
dynamicType checked at run time
ref / out / inPass by reference; out must be assigned inside; in is read-only
staticBelongs to the class, not an object
sealedClass cannot be inherited
partialClass split across files
?? / ?.Null-coalescing / null-conditional operators
is / asType check / safe cast (null if it fails)
C#
string? name = null;
Console.WriteLine(name?.Length ?? 0);   // 0

void Divide(int a, int b, out int q, out int r) { q = a / b; r = a % b; }
Divide(17, 5, out int q, out int r);    // q = 3, r = 2