private void ParseNullableSyndicationItemProperty(AtomSyndicationItemProperty itemProperty, XElement xmlData, PayloadObject payloadObject) { XElement element = xmlData.Element(atom + itemProperty.ToString().ToLowerInvariant()); if (element != null) { var value = element.Value; XAttribute nullAttribute = element.Attribute(m + "null"); if (nullAttribute != null && nullAttribute.Value == "true") { value = null; } payloadObject.SyndicationItemProperties[itemProperty] = value; } }
private void ParseNullableSyndicationItemProperty(AtomSyndicationItemProperty itemProperty, XElement xmlData, PayloadObject payloadObject) { XElement element = xmlData.Element(atom + itemProperty.ToString().ToLowerInvariant()); if (element != null) { var value = element.Value; XAttribute nullAttribute = element.Attribute(m + "null"); if (nullAttribute != null && nullAttribute.Value == "true") { value = null; } payloadObject.SyndicationItemProperties[itemProperty] = value; } }