asp net 3.5unleashed

Page 232

Japanese Characters To see Japanese characters in the source code and in the message box, Windows must have the East Asian Language files installed (which use approximately 230 MB of disk space). To install these files, open the Regional And Language Options dialog box (shown in Figure 12-2) in Control Panel, select the Languages tab, check the Install Files For East Asian Languages check box, and press OK. This causes Windows to install the East Asian language fonts and Input Method Editor (IME) files.

Figure 12-2: Installing East Asian Language files using the Regional And Language Options Control Panel dialog box Also, the source code file can’t be saved in ANSI; I used UTF-8, which the Visual Studio .NET editor and Microsoft’s C# compiler handle just fine.

In addition to Compare, the CompareInfo class offers IndexOf, IsLastIndexOf, IsPrefix, and IsSuffix methods. Because all these methods offer overloads that take a CompareOptions enumeration value as a parameter, they give you more control than the corresponding methods defined by the String class.

String Interning As I said in the preceding section, comparing strings is a common operation for many applications—it’s also a task that can hurt performance significantly. The reason for the


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.