2012-05-10 62 views

Odpowiedz

9

Proste - użyj metody Attributes():

foreach (var attribute in element.Attributes()) 
{ 
    string value = attribute.Value; 
    // ... 
} 
2

Zakładając chcesz odpowiedzi na this question

var img2 = feeds.Items 
    .SelectMany(i => i.ElementExtensions 
         .Select(e => e.GetObject<XElement>().Attribute("url").Value) 
       ) 
    .ToArray(); 
Powiązane problemy