
The System Namespace | 105
.NET FCL
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
The System.String Class
The System.String class implements a set of string manipulation features,
including methods for substring isolation, concatenation, replacement, padding,
trimming, and so on.
The VB String data type is equivalent to the System.String class, so the methods of
System.String apply directly to VB strings, as with the Insert method:
Dim famousQuote As String = "To be to be"
MsgBox(famousQuote.Insert(6, "or not "))
This displays the message, “To be or not to be.”
In .NET, strings are immutable. That is, they cannot be modified once they are
created. All methods of the String class that make changes to strings actually
create a new instance of a string that contains the changes.
Table 7-4 shows some significant members of the System.String class.
Atan2 Method Arctangent; returns the angle with the tangent that is the quotient of two specified
numbers
BigMul Method Multiplies two large 32-bit integers, returning a 64-bit integer
Ceiling Method Returns the smallest integer greater than or equal to the argument
Cos Method Cosine
Cosh Method Hyperbolic cosine
DivRem Method Returns the modulus, that is, the remainder of a division operation
E Field The natural number
e
Exp Method The natural number e raised to a power
Floor Method Returns the largest ...