Char array to string

var input = "The quick brown fox jumped over the lazy sleeping dog";
var array = input.Take(50).ToArray();
var s = new string(array);
var s2 = string.Concat(array);
// output: The quick brown fox jumped over the lazy sleeping

On this page

Latest Updates

© 0 - 2025 - Mike Brind.
All rights reserved.
Contact me at Mike dot Brind at Outlook.com