-Clean up compiler warnings

This commit is contained in:
JamesNK
2011-10-01 12:11:51 +00:00
parent 4f947d9207
commit ea2897c1b3
7 changed files with 33 additions and 3 deletions
+3 -3
View File
@@ -353,16 +353,16 @@ namespace Newtonsoft.Json
WriteComment(reader.Value.ToString());
break;
case JsonToken.Integer:
WriteValue(Convert.ToInt64(reader.Value));
WriteValue(Convert.ToInt64(reader.Value, CultureInfo.InvariantCulture));
break;
case JsonToken.Float:
WriteValue(Convert.ToDouble(reader.Value));
WriteValue(Convert.ToDouble(reader.Value, CultureInfo.InvariantCulture));
break;
case JsonToken.String:
WriteValue(reader.Value.ToString());
break;
case JsonToken.Boolean:
WriteValue(Convert.ToBoolean(reader.Value));
WriteValue(Convert.ToBoolean(reader.Value, CultureInfo.InvariantCulture));
break;
case JsonToken.Null:
WriteNull();
+4
View File
@@ -41,6 +41,10 @@ namespace Newtonsoft.Json.Linq
{
private IList<JToken> _values = new List<JToken>();
/// <summary>
/// Gets the container's children tokens.
/// </summary>
/// <value>The container's children tokens.</value>
protected override IList<JToken> ChildrenTokens
{
get { return _values; }
+4
View File
@@ -40,6 +40,10 @@ namespace Newtonsoft.Json.Linq
private string _name;
private IList<JToken> _values = new List<JToken>();
/// <summary>
/// Gets the container's children tokens.
/// </summary>
/// <value>The container's children tokens.</value>
protected override IList<JToken> ChildrenTokens
{
get { return _values; }
+8
View File
@@ -67,6 +67,10 @@ namespace Newtonsoft.Json.Linq
public event NotifyCollectionChangedEventHandler CollectionChanged;
#endif
/// <summary>
/// Gets the container's children tokens.
/// </summary>
/// <value>The container's children tokens.</value>
protected abstract IList<JToken> ChildrenTokens { get; }
private object _syncRoot;
@@ -865,6 +869,10 @@ namespace Newtonsoft.Json.Linq
CopyItemsTo(array, index);
}
/// <summary>
/// Gets the count of child JSON tokens.
/// </summary>
/// <value>The count of child JSON tokens</value>
public int Count
{
get { return ChildrenTokens.Count; }
+4
View File
@@ -85,6 +85,10 @@ namespace Newtonsoft.Json.Linq
private JPropertKeyedCollection _properties = new JPropertKeyedCollection(StringComparer.Ordinal);
/// <summary>
/// Gets the container's children tokens.
/// </summary>
/// <value>The container's children tokens.</value>
protected override IList<JToken> ChildrenTokens
{
get { return _properties; }
+4
View File
@@ -43,6 +43,10 @@ namespace Newtonsoft.Json.Linq
private readonly List<JToken> _content = new List<JToken>();
private readonly string _name;
/// <summary>
/// Gets the container's children tokens.
/// </summary>
/// <value>The container's children tokens.</value>
protected override IList<JToken> ChildrenTokens
{
get { return _content; }
@@ -118,6 +118,12 @@ namespace Newtonsoft.Json.Serialization
}
#if !(NET35 || NET20)
/// <summary>
/// When overridden in a derived class, controls the binding of a serialized object to a type.
/// </summary>
/// <param name="serializedType">The type of the object the formatter creates a new instance of.</param>
/// <param name="assemblyName">Specifies the <see cref="T:System.Reflection.Assembly"/> name of the serialized object. </param>
/// <param name="typeName">Specifies the <see cref="T:System.Type"/> name of the serialized object. </param>
public override void BindToName(Type serializedType, out string assemblyName, out string typeName)
{
#if !SILVERLIGHT