I have problem with this code
string.Join(",", Encoding.Unicode.GetBytes("10.10.10.11").Select(x => x.ToString("X2")));
i got error
cannot convert from 'System.Collections.Generic.IEnumerable<string>' to 'string[]'
And how can it export to comma seperated txt box ?
You can just convert an IEnumerable to an array of strings by calling the ToArray() extension method:
Sidenote:
Since .NET 4.0, there’s an overload of
String.Jointhat accepts anIEnumerable<String>, making the call toToArrayobsolete.