O'Reilly logo

Sams Teach Yourself Microsoft® Visual C#® 2005 in 24 Hours, Complete Starter Kit by James Foxall

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required