O'Reilly logo

Visual C#® 2012: How to Program, Fifth Edition by Harvey Deitel, Paul Deitel

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

Summary

Section 3.2 A Simple C# App: Displaying a Line of Text

• You may insert comments to document apps and improve their readability. The C# compiler ignores comments.

• A comment that begins with // is called a single-line comment, because it terminates at the end of the line on which it appears.

• Comments delimited by /* and */ can be spread over several lines.

• A programming language’s syntax specifies rules for creating a proper app in that language.

• A using directive helps the compiler locate a class that’s used in an app.

• C# provides a rich set of predefined classes that you can reuse rather than “reinventing the wheel.” These classes are grouped into namespaces—named collections of classes.

• Collectively, C#’s predefined namespaces ...

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