comparison Implab/JSON/JSONXmlReader.cs @ 78:05f74c39a143 v2

fixed JSONXmlReader.ElementValue for boolean values
author cin
date Thu, 11 Sep 2014 17:45:15 +0400
parents a809805210d1
children 05e6468f066f
comparison
equal deleted inserted replaced
77:91362ffbecf8 78:05f74c39a143
274 if (m_parser.ElementValue == null) 274 if (m_parser.ElementValue == null)
275 return String.Empty; 275 return String.Empty;
276 if (Convert.GetTypeCode(m_parser.ElementValue) == TypeCode.Double) 276 if (Convert.GetTypeCode(m_parser.ElementValue) == TypeCode.Double)
277 return ((double)m_parser.ElementValue).ToString(CultureInfo.InvariantCulture); 277 return ((double)m_parser.ElementValue).ToString(CultureInfo.InvariantCulture);
278 else 278 else
279 return (string)m_parser.ElementValue; 279 return m_parser.ElementValue.ToString();
280 } 280 }
281 } 281 }
282 282
283 void SetLocalName(string name) { 283 void SetLocalName(string name) {
284 m_localNameStack.Push(m_localName); 284 m_localNameStack.Push(m_localName);