Skip to Content
C# Data Structures and Algorithms
book

C# Data Structures and Algorithms

by Marcin Jamro
April 2018
Intermediate to advanced content levelIntermediate to advanced
292 pages
6h 44m
English
Packt Publishing
Content preview from C# Data Structures and Algorithms

Example – user details

The second example will show you how to store more complex data in the dictionary. In this scenario, you will create an application that shows details of a user based on him or her identifier, as shown in the following diagram:

The program should start with the data of three users. You should be able to enter the identifier and see details of the found user. Of course, the situation of non-existence of a given user should be handled by presenting the proper information in the console.

At the beginning, let's add the Employee class that just stores the data of an employee, namely first name, last name, and phone number. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning Data Structures and Algorithms in C#

Beginning Data Structures and Algorithms in C#

Marcin Jamro

Publisher Resources

ISBN: 9781788833738Supplemental Content