मैं एक समारोह में इस संग्रह वापस जाने के लिए कोशिश कर रहा हूँ:परिवर्तित EnumerableRowCollection <string> सूची में <string>
List<string> codes = (from q in Data.AsEnumerable() select q.Field<string>("START"));
return codes;
यह फेंकता त्रुटि:
Cannot implicitly convert type 'System.Data.EnumerableRowCollection<string>' to 'System.Collections.Generic.List<string>'
इस तरह के एक संग्रह वापस जाने के लिए सबसे अच्छा तरीका क्या है?
मेरा प्रश्न क्यों कम करें? – Meidi