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 16.2 Fundamentals of Characters and Strings

• Characters are the fundamental building blocks of C# program code. Every program is composed of a sequence of characters that’s interpreted by the compiler as a series of instructions used to accomplish a task.

• A string is a series of characters treated as a single unit. A string may include letters, digits and the various special characters: +, -, *, /, $ and others.

Section 16.3 string Constructors

• Class string provides eight constructors.

• All strings are immutable—their character contents cannot be changed after they’re created.

Section 16.4 string Indexer, Length Property and CopyTo Method

Property Length determines the number of characters in a string.

• The string ...

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