-Fixed build warnings
This commit is contained in:
@@ -1408,13 +1408,13 @@ namespace Newtonsoft.Json
|
|||||||
object convertedValue = convertable.ToType(resolvedType, CultureInfo.InvariantCulture);
|
object convertedValue = convertable.ToType(resolvedType, CultureInfo.InvariantCulture);
|
||||||
|
|
||||||
WriteValue(writer, resolvedTypeCode, convertedValue);
|
WriteValue(writer, resolvedTypeCode, convertedValue);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
throw CreateUnsupportedTypeException(writer, value);
|
throw CreateUnsupportedTypeException(writer, value);
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -34,8 +34,9 @@ namespace Newtonsoft.Json
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public enum MemberSerialization
|
public enum MemberSerialization
|
||||||
{
|
{
|
||||||
|
#pragma warning disable 1584,1711,1572,1581,1580,1574
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// All public members are serialized by default. Members can be excluded using <see cref="JsonIgnoreAttribute"/> or NonSerializedAttribute.
|
/// All public members are serialized by default. Members can be excluded using <see cref="JsonIgnoreAttribute"/> or <see cref="NonSerializedAttribute"/>.
|
||||||
/// This is the default member serialization mode.
|
/// This is the default member serialization mode.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
OptOut,
|
OptOut,
|
||||||
@@ -45,10 +46,11 @@ namespace Newtonsoft.Json
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
OptIn,
|
OptIn,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// All public and private fields are serialized. Members can be excluded using <see cref="JsonIgnoreAttribute"/> or NonSerializedAttribute.
|
/// All public and private fields are serialized. Members can be excluded using <see cref="JsonIgnoreAttribute"/> or <see cref="NonSerializedAttribute"/>.
|
||||||
/// This member serialization mode can also be set by marking the class with SerializableAttribute
|
/// This member serialization mode can also be set by marking the class with <see cref="SerializableAttribute"/>
|
||||||
/// and setting IgnoreSerializableAttribute on <see cref="DefaultContractResolver"/> to false.
|
/// and setting IgnoreSerializableAttribute on <see cref="DefaultContractResolver"/> to false.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Fields
|
Fields
|
||||||
|
#pragma warning restore 1584,1711,1572,1581,1580,1574
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2974,6 +2974,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
|||||||
|
|
||||||
namespace Newtonsoft.Json.Serialization
|
namespace Newtonsoft.Json.Serialization
|
||||||
{
|
{
|
||||||
|
#pragma warning disable 1591
|
||||||
public delegate TResult Func<TResult>();
|
public delegate TResult Func<TResult>();
|
||||||
|
|
||||||
public delegate TResult Func<T, TResult>(T a);
|
public delegate TResult Func<T, TResult>(T a);
|
||||||
@@ -2991,6 +2992,7 @@ namespace Newtonsoft.Json.Serialization
|
|||||||
public delegate void Action<T1, T2, T3>(T1 arg1, T2 arg2, T3 arg3);
|
public delegate void Action<T1, T2, T3>(T1 arg1, T2 arg2, T3 arg3);
|
||||||
|
|
||||||
public delegate void Action<T1, T2, T3, T4>(T1 arg1, T2 arg2, T3 arg3, T4 arg4);
|
public delegate void Action<T1, T2, T3, T4>(T1 arg1, T2 arg2, T3 arg3, T4 arg4);
|
||||||
|
#pragma warning restore 1591
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace System.Runtime.CompilerServices
|
namespace System.Runtime.CompilerServices
|
||||||
|
|||||||
Reference in New Issue
Block a user