As C# is an object-oriented language, everything we want to work with is an object. Objects can be declared as having various TYPES and then interacted with.

Download this lesson as a Polyglot Notebook to open in Visual Studio Code, or open directly in your web browser with Binder.

Let’s consider our deck of cards as an example. Using variables, we can model all the different states and information about the deck of cards, and we’ll use that as a sample scenario throughout this module.

The simplest types in C# are called Built-In Types and have short keywords available that we can use to declare the type of a variable.


Episode 1

To read more, join Jeff on his blog.