home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2005 June (DVD) / DPPRO0605DVD.iso / dotNETSDK / SETUP.EXE / netfxsd1.cab / FL_Strings_xml________.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Encoding:
Extensible Markup Language  |  2001-08-21  |  1.4 KB  |  15 lines

  1. ∩╗┐<?xml version="1.0"?>
  2. <?xml-stylesheet type="text/xsl" href="CLI.xsl"?>
  3. <Document Title="Working with Strings">
  4.     <Paragraph>
  5.         The .NET Framework Class Library offers two types that developers can use to work with strings: System.String and System.Text.StringBuilder. Of the two, String is the more commonly used         type. The String type identifies an immutable string. That is, once you create a String, you cannot change it in anyway. The String type offers several methods including Insert, Remove, Replace,         SubString, and more. Since String objects are immutable, all of these methods operate on an existing String object and return a new String object. 
  6.     </Paragraph>
  7.     <Paragraph>
  8.         If you need to perform many dynamic operations on a string of characters, then you should not use the String types ΓÇô you should use the StringBuilder type instead. The StringBuilder wraps a         dynamically sizing array of characters. The StringBuilder type offers several methods including Append, Insert, Remove, Replace, and more. All of these methods manipulate the dynamic array of         characters in place. That is, because each operation does not create a new object, string manipulations have better performance.  You can easily obtain a String object from a StringBuilder object by         calling the StringBuilderΓÇÖs ToString method.
  9.     </Paragraph>
  10.     <Navigation>
  11.         <Previous>Exclusive Operations.xml</Previous>
  12.         <Next>Streams.xml</Next>
  13.     </Navigation>
  14. </Document>
  15.