Bu örnektir:Kendi sınıfımın bir listesini doğrudan LINQ'de doldurabilir miyim?
public class FotoLiveLove
{
public string Tipologia { get; set; }
public string URL { get; set; }
}
IList<FotoLiveLove> fotoLiveLove = xDoc["statuses"].Select(x => new
{
Tipologia = "twitter",
URL = (string)x["URLJSON"]
}).ToList();
ama acnnot FotoLiveLove Anonim tipi 1. dönüştürmek diyor.
+1. Bir yan notda, nesne başlatıcı sözdizimini kullanırsanız, '()' ye ihtiyacınız yoktur. –