In this course, we look at how different types of data are stored using variables within a C# program. C# is a strongly typed language, meaning when you manipulate data in code, you must keep the data in variables that are specifically designed to hold that kind of data. For example, text is stored in a string data type and a letter in a char. There are over ten different numeric data types that vary in size and accuracy or precision of the data they can faithfully represent. We investigate some of the quirks in dealing with fractional numbers in a computer's binary environment. There are in-depth code examples for each of these topics to illustrate the discussed concepts and make you more familiar with C# programming in general.
This course builds upon the key concepts and examples covered in the Introduction to C# course. It includes guided demonstrations to give you practical knowledge of how to handle the concepts covered.
Learning Objectives
- Understand what variables are and how they're stored
- Learn about data types for storing and manipulating text values
- Learn about the various data types for storing and manipulating whole and fractional numbers
- Learn about variables for storing multiple values of the same data type
Intended Audience
This course is intended for anyone who has a basic understanding of C# and now wants to build upon that knowledge.
Prerequisites
This course carries on from our Introduction to C# course, so we suggest taking that one first if you haven't already done so.
Resources
Code examples used in demos on GitHub: https://github.com/cloudacademy/csharp-datatypes-variables
Hi. And welcome to this Data Types and Variables C# programming course. This course takes up where the introductory course left off, explaining the key concepts of the example program we created. If you are completely new to C#.NET development, I would highly recommend looking at the introduction course first. In that course, I put the .NET framework in a programming and historical context and went through setting up a development environment.
If you have Visual Studio installed or VS Code with a C# extension set up then you can jump straight into this course. We welcome all feedback. So, please feel free to get in touch with us at support@cloudacademy.com with any comments, positive or negative. Let's jump in.
Hallam is a software architect with over 20 years experience across a wide range of industries. He began his software career as a Delphi/Interbase disciple but changed his allegiance to Microsoft with its deep and broad ecosystem. While Hallam has designed and crafted custom software utilizing web, mobile and desktop technologies, good quality reliable data is the key to a successful solution. The challenge of quickly turning data into useful information for digestion by humans and machines has led Hallam to specialize in database design and process automation. Showing customers how leverage new technology to change and improve their business processes is one of the key drivers keeping Hallam coming back to the keyboard.