changeset 78:05f74c39a143 v2

fixed JSONXmlReader.ElementValue for boolean values
author cin
date Thu, 11 Sep 2014 17:45:15 +0400
parents 91362ffbecf8
children 05e6468f066f
files Implab/Implab.csproj Implab/JSON/JSONXmlReader.cs
diffstat 2 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Implab/Implab.csproj	Thu Sep 11 10:56:14 2014 +0400
+++ b/Implab/Implab.csproj	Thu Sep 11 17:45:15 2014 +0400
@@ -7,8 +7,6 @@
     <OutputType>Library</OutputType>
     <RootNamespace>Implab</RootNamespace>
     <AssemblyName>Implab</AssemblyName>
-    <ProductVersion>8.0.30703</ProductVersion>
-    <SchemaVersion>2.0</SchemaVersion>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
     <DebugSymbols>true</DebugSymbols>
--- a/Implab/JSON/JSONXmlReader.cs	Thu Sep 11 10:56:14 2014 +0400
+++ b/Implab/JSON/JSONXmlReader.cs	Thu Sep 11 17:45:15 2014 +0400
@@ -276,7 +276,7 @@
                 if (Convert.GetTypeCode(m_parser.ElementValue) == TypeCode.Double)
                     return ((double)m_parser.ElementValue).ToString(CultureInfo.InvariantCulture);
                 else
-                    return (string)m_parser.ElementValue;
+                    return m_parser.ElementValue.ToString();
             }
         }