-Fixed build

-Removed unused code
This commit is contained in:
James Newton-King
2013-04-06 15:19:33 +13:00
parent 032bf82e0a
commit 695bb8368f
45 changed files with 755 additions and 574 deletions
@@ -116,7 +116,7 @@ namespace Newtonsoft.Json.Converters
reader.Read();
}
return ReflectionUtils.CreateInstance(t, key, value);
return Activator.CreateInstance(t, key, value);
}
/// <summary>
@@ -195,11 +195,6 @@ namespace Newtonsoft.Json.Converters
get { return _node.NodeType; }
}
public string Name
{
get { return _node.Name; }
}
public string LocalName
{
get { return _node.LocalName; }
@@ -263,11 +258,6 @@ namespace Newtonsoft.Json.Converters
return newChild;
}
public string Prefix
{
get { return _node.Prefix; }
}
public string NamespaceUri
{
get { return _node.NamespaceURI; }
@@ -1308,7 +1298,7 @@ namespace Newtonsoft.Json.Converters
if (count == 1 && WriteArrayAttribute)
{
IXmlElement arrayElement = nestedArrayElement.ChildNodes.CastValid<IXmlElement>().Single(n => n.LocalName == propertyName);
IXmlElement arrayElement = nestedArrayElement.ChildNodes.OfType<IXmlElement>().Single(n => n.LocalName == propertyName);
AddJsonArrayAttribute(arrayElement, document);
}
}
@@ -1489,7 +1479,7 @@ namespace Newtonsoft.Json.Converters
if (count == 1 && WriteArrayAttribute)
{
IXmlElement arrayElement = currentNode.ChildNodes.CastValid<IXmlElement>().Single(n => n.LocalName == propertyName);
IXmlElement arrayElement = currentNode.ChildNodes.OfType<IXmlElement>().Single(n => n.LocalName == propertyName);
AddJsonArrayAttribute(arrayElement, document);
}
}