O'Reilly logo

Introducing Visual C# 2010 by Adam Freeman

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 16. Strings and Characters

This chapter describes the C# support for characters and strings. We start with the char type, which represents a single character, before moving on to strings, which represent a sequence of characters. We will see how literals can be used to define char and string values, how to perform operations on both types, and the members that are available in the char struct and the string class to make working with these types simpler.

We will finish this chapter by looking at the composite formatting feature, which allows you to embed format items into strings that are later replaced with string representations of objects and values. This is a powerful feature that you will use in almost every program you write using ...

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