próbuję powrócić tę kolekcję w funkcji:konwertować EnumerableRowCollection <string> do listy <string>
List<string> codes = (from q in Data.AsEnumerable() select q.Field<string>("START"));
return codes;
rzuca ten błąd:
Cannot implicitly convert type 'System.Data.EnumerableRowCollection<string>' to 'System.Collections.Generic.List<string>'
Jaki jest najlepszy sposób, aby powrócić taką kolekcję?
Dlaczego zignorować moje pytanie? – Meidi