here is my code:
error is: in the datacolumn, there is null , empty and 'none' value.
i want to my s contains only the entity not including null, empty, 'none' value.
Any help will be appreciate!
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
Mamta MRank #268 · 9.4K reputationPosted Feb 21, 2011, 7:27 PM EST
string[] s = Array.ConvertAll
if (row["columname"].GetType().ToString() != "System.DBNull")
return (string)row["columname"];
else
return "";
});
Michael Xie16 reputationPosted Feb 28, 2011, 6:30 PM EST
foreach (string s in arrs1)
{
if (s == null || s.Length == 0)
{
continue;
}
else if(!arrs2.Contains(s))
{
arrs2.Add(s);
}
}
thanks for your help so:)