2 C# Datatypes & Variables
This chapter covers
- Using variables in C# as opposed to other languages
- Working with the different types and datatypes
- Using the Random Class in C#
- Concatenating strings in code
- Developing a Dice rolling application
In chapter one, we got our first presentation on the C# language, were introduced to the C# console app development process with our interactive storytelling app, and learned about what this book has prepared for us in future chapters. Hopefully, this has helped those intermediate in the C# programming language understand what to expect from this book, as well as introduced to the process of C# console app development process for those experienced in other object-oriented languages.
Then in this chapter, we will be working on some randomness. Specifically, we will work on a dice-rolling application, which simulates the act of rolling a dice, commonly used in board games. This digital version is perfect for board gaming nights when physical dice are unavailable or inconvenient. Similar to our previous project, this will serve as a great base to expand upon with everything we learn in future chapters. Apart from that, it will be perfect for introducing us to variables, data types, concatenation, and the generation of random numbers.