Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting string[] to ObservableCollection<string> [closed]

I have a string[]. What I'd like to do is to convert the string[] to ObservableCollection<string>.

like image 659
Ramzy Abourafeh Avatar asked Jul 18 '26 10:07

Ramzy Abourafeh


1 Answers

Type cast does not work. You need to initialize ObservableCollection with string array.

new ObservableCollection(<string array>)
like image 82
Tilak Avatar answered Jul 20 '26 22:07

Tilak