AppendValueFromValueDictionary
(
Dictionary<String, Object> valueDictionary,
String name,
GraphMLXmlDocument graphMLXmlDocument,
XmlNode edgeOrVertexXmlNode,
String graphMLAttributeID
)
{
Debug.Assert(valueDictionary != null);
Debug.Assert( !String.IsNullOrEmpty(name) );
Debug.Assert(graphMLXmlDocument != null);
Debug.Assert(edgeOrVertexXmlNode != null);
Debug.Assert( !String.IsNullOrEmpty(graphMLAttributeID) );
String value;
if ( TwitterJsonUtil.TryGetJsonValueFromDictionary(
valueDictionary, name, out value) )
{
graphMLXmlDocument.AppendGraphMLAttributeValue(
edgeOrVertexXmlNode, graphMLAttributeID, value);
return (true);
}
return (false);
}