There’s a constructor for this:
char[] chars = {'a', ' ', 's', 't', 'r', 'i', 'n', 'g'};
string s = new string(chars);
More Related Contents:
- Operator ‘==’ cannot be applied to operands of type ‘char’ and ‘string’
- How to convert UTF-8 byte[] to string
- Check if a value is in an array (C#)
- Why is there no Char.Empty like String.Empty?
- What is the correct way to compare char ignoring case?
- How can I String.Format a TimeSpan object with a custom format in .NET?
- How to access random item in list?
- Easiest way to compare arrays in C#
- How do arrays in C# partially implement IList?
- Way to have String.Replace only hit “whole words”
- Best way to resolve file path too long exception
- Splitting a string / number every Nth Character / Number?
- Is String.Contains() faster than String.IndexOf()?
- Overhead of a .NET array?
- Escape curly brace ‘{‘ in String.Format [duplicate]
- How to “flatten” or “index” 3D-array in 1D array?
- How do I split a string by strings and include the delimiters using .NET?
- How do I truncate a .NET string?
- Correlation of two arrays in C#
- C# Version Of SQL LIKE
- How to get a dimension (slice) from a multidimensional array
- Compare string similarity
- Pick Random String From Array
- How to convert string to integer in C#
- string.Empty vs null.Which one do you use?
- How to use StringBuilder wisely?
- Format Strings in Console.WriteLine method
- C split a char array into different variables
- splitting a string based on multiple char delimiters
- what’s the use of string.Clone()?