What is the proper way to turn a char[]
into a string?
The ToString()
method from an array of characters doesn't do the trick.
What is the proper way to turn a char[]
into a string?
The ToString()
method from an array of characters doesn't do the trick.
Another alternative
Use the constructor of string which accepts a char[]
One other way:
Use the string constructor which accepts chararray as argument, start position and length of array. Syntax is given below: