Often programmers want to convert an array into one string with for example comma delimited.
Traditionally, in C#, it can be achieved by
int[] array = {1,2,3};
string delimited = string.Join(”,”, array);
Console.WriteLine(delimited ) // output: "1,2,3"
However, string.Join does not apply to any generic IEnumerable object. It would so much easier if this method behavior could be applied [...]
Continue reading about Separator Delimited ToString for Array, List, Dictionary, Generic IEnumerable
Pointer usage in C#, it must be in unsafe context
static unsafe void Main()
{
int i;
int[] array = { 11, 22, 33 };
// pointer pi has the address of variable i
int* pi = & i;
// ppi(addess of pi) < pi(addess of i) < i(0)
i = [...]