1
Answer

how to filter list<string> elements=new list<string>

Photo of Sujeet Raman

Sujeet Raman

5y
479
1
hi all
 
i have a list object  having several files like.xml,.aspx  in that object i want to filter only .xml file.when i filter the result become null and the where condition is not working here
 
what i tried is..
 
var results=listobject.Findall(items=>listobject.contains(".xml")) 
 
here results is Null...
 
can anyone help? 

Answers (1)