Sujeet Raman

Sujeet Raman

  • 743
  • 915
  • 334.3k

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

Apr 27 2020 3:10 AM
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)