
- C# Basic Tutorial
- C# - Home
- C# - Overview
- C# - Environment
- C# - Program Structure
- C# - Basic Syntax
- C# - Data Types
- C# - Type Conversion
- C# - Variables
- C# - Constants
- C# - Operators
- C# - Decision Making
- C# - Loops
- C# - Encapsulation
- C# - Methods
- C# - Nullables
- C# - Arrays
- C# - Strings
- C# - Structure
- C# - Enums
- C# - Classes
- C# - Inheritance
- C# - Polymorphism
- C# - Operator Overloading
- C# - Interfaces
- C# - Namespaces
- C# - Preprocessor Directives
- C# - Regular Expressions
- C# - Exception Handling
- C# - File I/O
- C# Advanced Tutorial
- C# - Attributes
- C# - Reflection
- C# - Properties
- C# - Indexers
- C# - Delegates
- C# - Events
- C# - Collections
- C# - Generics
- C# - Anonymous Methods
- C# - Unsafe Codes
- C# - Multithreading
- C# Useful Resources
- C# - Questions and Answers
- C# - Quick Guide
- C# - Useful Resources
- C# - Discussion
How to convert a list of characters into a string in C#?
Firstly, set the characters.
char[] arr = new char[5]; arr[0] = 'Y'; arr[1] = 'E'; arr[2] = 'S';
Now, convert them into string.
string res = new string(arr);
The following is the complete code to convert a list of characters into a string −
Example
using System; class Program { static void Main() { char[] arr = new char[5]; arr[0] = 'Y'; arr[1] = 'E'; arr[2] = 'S'; // converting to string string res = new string(arr); Console.WriteLine(res); } }
Output
YES
- Related Articles
- C# program to convert a list of characters into a string
- Java program to convert a list of characters into a string
- How can we convert a list of characters into a string in Python?
- How to convert an array of characters into a string in C#?
- Convert a String to a List of Characters in Java
- Convert a String into a square matrix grid of characters in C++
- Convert List of Characters to String in Java
- Convert a string representation of list into list in Python
- How to convert list elements into a single string in R?
- How to convert a list to string in C#?
- Convert characters of a string to opposite case in C++
- How to convert a string into int in C#?
- How to convert a list of lists into a single list in R?
- How to remove a list of characters in string in Python?
- How do I convert a double into a string in C++?

Advertisements