R
realgeek
I have tihsl ine of code:
textBox1.Text = string.Join(",",(checkedListBox1.SelectedItems as
IEnumerable).ToArray<string>());
It was composed using intellisense e.g. it told me the method is there,
but when I try to build it it tells me there's no such methods as
ToArray. I tried using no interface cause SelectedItems themselves
contain the method ofc; to no avail.
What am I doing wrong?
textBox1.Text = string.Join(",",(checkedListBox1.SelectedItems as
IEnumerable).ToArray<string>());
It was composed using intellisense e.g. it told me the method is there,
but when I try to build it it tells me there's no such methods as
ToArray. I tried using no interface cause SelectedItems themselves
contain the method ofc; to no avail.
What am I doing wrong?