-Fixed build
-Removed unused code
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user