voglio convertire gli elementi inseriti in un elenco Stringa da:Come convertire Lista <string> a ReadOnlyCollection <string> in C#
System.Collections.ObjectModel.ReadOnlyCollection<string>
Ho provato con:
(System.Collections.ObjectModel.ReadOnlyCollection<string>)listname
ma restituisce un errore .
possibile duplicato del [Return ReadOnlyCollection da IList <>] (http://stackoverflow.com/questions/7227611/return-readonlycollection-from-ilist) – nawfal