Lecture overview -- Keyboard shortcut: 'u'  Previous page: Overview of the class <b><kbd>Dictionary<K,V></kbd></b> -- Keyboard shortcut: 'p'  Next page: Notes about Dictionary Classes -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 27 : 36
Object-oriented Programming in C#
Collection Classes
Sample use of class Dictionary<K,V>

A dictionary that maps Persons to BankAccounts

/user/normark/oop-csharp-1/sources/c-sharp/collections/dictionary/0/person.csA class Person.


/user/normark/oop-csharp-1/sources/c-sharp/collections/dictionary/0/bank-account.csA class BankAccount.


/user/normark/oop-csharp-1/sources/c-sharp/collections/dictionary/0/prog.csA program working with Dictionary<Person,BankAccount>. This program is explained


/user/normark/oop-csharp-1/sources/c-sharp/collections/dictionary/0/outputOutput from the Dictionary<Person,BankAccount> program.


Go to exerciseSwitching from Dictionary to SortedDictionary