我有以下内容:
var result =
from entry in feed.Descendants(a + "entry")
let content = entry.Element(a + "content")
let properties = content.Element(m + "properties")
let text = properties.Element(d + "Text")
let title = properties.Element(d + "Title")
let partitionKey = properties.Element(d + "PartitionKey")
select new Content
{
Text = text.Value,
Title = title.Value
};
我想做的是添加一个位置,以便只有一些项目被放入结果中。如何添加条件:
partitionKey.Substring(2, 2) == "03" && text != null
选择?