Converts the value of this instance to a Char array.

Namespace: MonoSoftware.Core
Assembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)

Syntax

C#
public static char[] ToChars(
	this StringBuilder sb,
	int startIndex,
	int length
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function ToChars ( 
	sb As StringBuilder,
	startIndex As Integer,
	length As Integer
) As Char()
Visual C++
public:
[ExtensionAttribute]
static array<wchar_t>^ ToChars(
	StringBuilder^ sb, 
	int startIndex, 
	int length
)
F#
static member ToChars : 
        sb : StringBuilder * 
        startIndex : int * 
        length : int -> char[] 

Parameters

sb
Type: System.Text..::..StringBuilder
String builder instance
startIndex
Type: System..::..Int32
The zero-based starting position of this instance.
length
Type: System..::..Int32
Array length

Return Value

Type: array<Char>[]()[][]
Char array

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type StringBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also