Chapter 11. Using Constants, Data Types, Variables, and Arrays

What You’ll Learn in This Hour:

  • Understanding data types

  • Determining data type

  • Converting data to different data types

  • Defining and using constants

  • Declaring and referencing variables

  • Working with arrays

  • Determining scope

  • Declaring static variables

  • Using a naming convention

As you write your Visual C# methods, you’ll regularly need to store and retrieve various pieces of information. In fact, I can’t think of a single application I’ve written that didn’t need to store and retrieve data in code. For example, you might want to keep track of how many times a method has been called, or you may want to store a property value and use it at a later time. Such data can be stored as constants, variables ...

Get Sams Teach Yourself Microsoft® Visual C#® 2005 in 24 Hours, Complete Starter Kit now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.