Listeye IEnumerable
public List<string> AttachmentURLS;
Böyle listeye öğe ekliyorum:
instruction.AttachmentURLS = curItem.Attributes["ows_Attachments"].Value.Split(';').ToList().Where(Attachment => !String.IsNullOrEmpty(Attachment));
Ama alıyorum Bu hata: Implicitly IEnumerable List 'e dönüştürebilir
Neyi yanlış yapıyorum?
Bir tür döküm eklemeye çalıştınız mı? instruction.AttachmentURLS = (Liste) curItem.Attributes ... Elbette .ToList() yöntemini unuttum. Sadece sonuna kadar ekleyin. –
Nilbert