string []s={"af","adsf"};
List
st.Add(s.Select(aa=>aa).First().ToString()); //how can do this
I want no more Loop.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Dec 5, 2014, 11:11 PM EST
try like this
string[] s = { "af", "adsf","Manish" };
List
foreach (var a in st)
{
Response.Write(a+"
");
}
O/p:-
af
adsf
Manish
List
this also work