Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trap for missing XElement
Message
De
29/11/2008 12:23:30
 
 
À
29/11/2008 12:12:54
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01364420
Message ID:
01364631
Vues:
16
>I don't disagree - I guess I'm just ambivalent about it :-}

Well, I don't really care either ... just being obstinate I guess. <g>

~~Bonnie





>>>Well .Descendants is overloaded - there's a second usage that takes a XName parameter ; ditto with a Ancestors. And Element and Attribute always take parameters so they all need to be methods.....
>>
>>Not if the properties are Collections (which is what I thought they were) ... then you'd have .Descendants["Customer"] to retrieve one Descendant (which is also a collection).
>
>Not neccessarily only one - there could well me multiple elements named 'Customer'. Also what syntax would you use to get all child elements ? .Descendants[""] would probably come up with nothing so an overloaded method might be the best way.
>
>> But, anyway, if they wanted that sort of functionality, then the method should have been named .GetDescendants, instead of .Descendants. That's all I was saying. You don't agree?
>
>I don't disagree - I guess I'm just ambivalent about it :-}
>Best,
>Viv
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform