Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i combine two char's into a string c# [duplicate]

Tags:

string

c#

char

I've been stuck with this for quite some time and was wondering if anyone could tell me how to combine two char's into a single string, seeming as I cannot for the life of me find out how to do it whatsoever. (latest version of c# :P)

like image 382
Enenra Kage Avatar asked Jul 02 '17 09:07

Enenra Kage


1 Answers

char[] chars = {'a', 'b'};
string s = new string(chars);
like image 113
Fruchtzwerg Avatar answered Oct 21 '22 07:10

Fruchtzwerg