I have a List defined like this :
public List AttachmentURLS;
I am adding items to the list like this:
instructio
The Where method returns an IEnumerable. Try adding
IEnumerable
.ToList()
to the end like so:
instruction.AttachmentURLS = curItem.Attributes["ows_Attachments"] .Value.Split(';').ToList() .Where(Attachment => !String.IsNullOrEmpty(Attachment)) .ToList();