Home » C# String ToCharArray() method

C# String ToCharArray() method

by Online Tutorials Library

C# String ToCharArray()

The C# ToCharArray() method is used to get character array from a string object.

Signature

Parameter

First method does not take any parameter while second method takes two integer parameters.

Return

It returns a character array.


C# String ToCharArray() Method Example

Output:

H  e  l  l  o     C  #  

You may also like