Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XML ellipsis / other syntax - what's it called?

Tags:

.net

xml

vb.net

I ran into the following piece of code that puzzled me at first glance. I wasn't able to find resources on this, due to its nature it's kind of hard to search for. I'm of course puzzled by the ...<price> portion of this. What's the syntax / concept called, what is it doing, or where can I read more about the concept? I'm sure it's not complicated, I just don't know what to look for and wasn't even sure how to phrase the question! Is ... separate from <price>? What types do those return? And any other general info. Thanks!

Price = xml_GetElementValue(xml...<price>.FirstOrDefault)
like image 638
p e p Avatar asked Oct 21 '22 03:10

p e p


1 Answers

It selects a sub-child element <price> under the xml XElement. It's a LINQ to XML notation in VB.

Provides access to the descendants of the following: an XElement object, an XDocument object, a collection of XElement objects, or a collection of XDocument objects.

object...<descendant>

See: XML Descendant Axis Property (Visual Basic) http://msdn.microsoft.com/en-us/library/bb384876.aspx

like image 175
Leon Avatar answered Oct 28 '22 22:10

Leon