Lecture overview -- Keyboard shortcut: 'u'  Previous page: Another example of constraints -- Keyboard shortcut: 'p'  Next page: Generic structs -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Generic Types and Methods - slide 12 : 21

Variance

A CheckAccount is a BankAccount

But is a Set<CheckAccount> a Set<BankAccount> ?

app.cs
Sets of check accounts and bank accounts.
C# 3.0 uses invariance