Learn your way! Get started

Programming C# 6, Part 04: Variables and Data Types

with expert Don Kiely

Watch trailer

Programming C# 6, Part 04: Variables and Data Types Trailer

Course at a glance

Included in these subscriptions:

  • Dev & IT Pro Video
  • Dev & IT Pro Power Pack
  • Power Pack Plus

Release date Release date 12/14/2015
Level Level Beginner
Runtime Runtime 1h 52m
Platform Platform Major browsers on Windows Major browsers on Windows Major browsers on Mac OSX Major browsers on Mac OSX Mobile Devices Mobile Devices
Closed captioning Closed captioning Included
Transcript Transcript Included
eBooks / courseware eBooks / courseware Included
Hands-on labs Hands-on labs Included
Sample code Sample code Included
Exams Exams Included

Enterprise Solutions
Enterprise Solutions

Need reporting, custom learning tracks, or SCORM? Learn More

Course description

Variables and data types are a core feature of any programming language, and you'll learn about them in this course. You'll see how to name, declare, and initialize variables, as well as a way to let the compiler determine the appropriate data type, and why you may or may not want to do that. Then you'll learn about many of the built-in data types provided by C# and the .NET Framework, letting you manage just about any kind of data in memory. The course wraps up with a look at three advanced types: constants, enumerations, and structures.


This is an entry level course. Some amount of programming experience will be helpful and speed up your learning but you can jump right into this course at any level.

Meet the expert

Don Kiely Don Kiely is a featured instructor on many of our SQL Server and Visual Studio courses. He is a nationally recognized author, instructor, and consultant specializing in Microsoft technologies. Don has many years of teaching experience, is the author or co-author of several programming books, and has spoken at many industry conferences and user groups. In addition, Don is a consultant for a variety of companies that develop distributed applications for public and private organizations.

Course outline

Variables and Data Types

Variables (26:58)
  • Introduction (00:41)
  • Introducing Variables (01:41)
  • Naming Variables (05:17)
  • Declaring Variables (03:33)
  • The var Keyword (00:53)
  • Demo: var Keyword (03:28)
  • The var Keyword Cont. (03:06)
  • Variable Lifetime and Scope (01:07)
  • Demo: Variable Scope (03:59)
  • Demo: Variable Scope Cont. (02:41)
  • Summary (00:29)
Data Types (29:21)
  • Introduction (00:33)
  • Introducing Data Types (02:25)
  • Data Types (03:15)
  • Data Types Cont. (03:44)
  • Numeric Data Types (01:37)
  • Choosing an Integer Type (03:06)
  • Demo: Integer Data Types (09:17)
  • BigInteger Data Type (02:41)
  • Demo: BigInteger (02:02)
  • Summary (00:37)

A Closer Look at Data Types

Floating Point Data (11:51)
  • Introduction (00:25)
  • Floating-Point Data Types (01:31)
  • Decimal Data Type (01:09)
  • Demo: Floating-Point Types (05:53)
  • Demo: Floating-Point Cont. (02:25)
  • Summary (00:27)
Characters (23:05)
  • Introduction (00:42)
  • Char Data Type (00:29)
  • ASCII Characters (00:18)
  • Demo: Char Data Type (06:10)
  • String Data Types (00:22)
  • Demo: String Data Type (05:17)
  • Demo: Escape Characters (03:27)
  • Other Data Types and Objects (00:22)
  • Demo: Boolean Data Type (01:57)
  • Demo: Object Data Type (03:15)
  • Summary (00:43)
Constants and Enums (20:59)
  • Introduction (00:41)
  • Constants (00:42)
  • Demo: Contstants (02:49)
  • Enumerations (01:43)
  • Demo: Enumerations (04:43)
  • Structures (00:46)
  • Demo: Structures (04:44)
  • The Complex Structure (01:38)
  • Demo: Complex Structure (02:46)
  • Summary (00:24)