Hi,
I have this linq statement:
IEnumerable<Room> roomsList = (from room in parent.Descendants("room")
where room.Element("sleeps").Value == "2"
&& room.Element("rate").Element("price").Value != "Full"
the 'parent' bit above is an XElement -
from the above ^^
Basically, i want roomsList to have only those rooms, that do not have a price that is "Full"
However, in teh roomsList, there are still "Full" values!!
where am i going wrong?
Alex
Source Click Here.
No comments:
Post a Comment
Post your comments here: