Get 20M+ Full-Text Papers For Less Than $1.50/day. Start a 14-Day Trial for You or Your Team.

Learn More →

A Programmer’s Introduction to C# 2.0C# Quick Start and C# Development

A Programmer’s Introduction to C# 2.0: C# Quick Start and C# Development CHAPTER 3 ■ ■ ■ C# Quick Start and C# Development T his chapter presents a quick overview of the C# language. This chapter assumes a certain level of programming knowledge and therefore doesn’t present very much detail. If the expla- nation here doesn’t make sense, look for a more detailed explanation of the particular topic later in the book. The second part of the chapter discusses how to obtain the C# compiler and the advantages of using Visual Studio .NET (VS .NET) to develop C# applications. Hello, Universe As a supporter of SETI, we thought it’d be appropriate to do a “Hello, Universe” program rather than the canonical “Hello, World” program: using System; class Hello public static void Main(string[] args) Console.WriteLine("Hello, Universe"); // iterate over command-line arguments, // and print them out for (int arg = 0; arg < args.Length; arg++) Console.WriteLine("Arg {0}: {1}", arg, args[arg]); As discussed earlier, the .NET runtime has a unified namespace for all program informa- tion (or metadata). The using System clause is a way of referencing the classes that are in the System namespace so they can be used without having to put System in front of the type name. 1. Search http://www.deepdyve.com/assets/images/DeepDyve-Logo-lg.png

A Programmer’s Introduction to C# 2.0C# Quick Start and C# Development

Editors: Gunnerson, Eric; Wienholt, Nick

Loading next page...
 
/lp/springer-journals/a-programmer-s-introduction-to-c-2-0-c-quick-start-and-c-development-yJymfcGhrq

References (0)

References for this paper are not available at this time. We will be adding them shortly, thank you for your patience.

Publisher
Apress
Copyright
© Apress 2005
ISBN
978-1-59059-501-5
Pages
11 –20
DOI
10.1007/978-1-4302-0035-2_3
Publisher site
See Chapter on Publisher Site

Abstract

CHAPTER 3 ■ ■ ■ C# Quick Start and C# Development T his chapter presents a quick overview of the C# language. This chapter assumes a certain level of programming knowledge and therefore doesn’t present very much detail. If the expla- nation here doesn’t make sense, look for a more detailed explanation of the particular topic later in the book. The second part of the chapter discusses how to obtain the C# compiler and the advantages of using Visual Studio .NET (VS .NET) to develop C# applications. Hello, Universe As a supporter of SETI, we thought it’d be appropriate to do a “Hello, Universe” program rather than the canonical “Hello, World” program: using System; class Hello public static void Main(string[] args) Console.WriteLine("Hello, Universe"); // iterate over command-line arguments, // and print them out for (int arg = 0; arg < args.Length; arg++) Console.WriteLine("Arg {0}: {1}", arg, args[arg]); As discussed earlier, the .NET runtime has a unified namespace for all program informa- tion (or metadata). The using System clause is a way of referencing the classes that are in the System namespace so they can be used without having to put System in front of the type name. 1. Search

Published: Jan 1, 2005

Keywords: Class View; Visual Studio; Reference Type; Native Code; Quick Start

There are no references for this article.