Annotate for trim/AOT (in)compatibility (#2980)

Co-authored-by: James Newton-King <james@newtonking.com>
This commit is contained in:
Sven Boemer
2024-10-11 16:33:15 +08:00
committed by GitHub
co-authored by James Newton-King
parent 4738a64817
commit 9317d71ac5
76 changed files with 1233 additions and 60 deletions
@@ -24,6 +24,8 @@
#endregion
using System;
using System.Diagnostics.CodeAnalysis;
using Newtonsoft.Json.Utilities;
namespace Newtonsoft.Json.Serialization
{
@@ -36,6 +38,7 @@ namespace Newtonsoft.Json.Serialization
/// Initializes a new instance of the <see cref="JsonStringContract"/> class.
/// </summary>
/// <param name="underlyingType">The underlying type for the contract.</param>
[RequiresUnreferencedCode(MiscellaneousUtils.TrimWarning)]
public JsonStringContract(Type underlyingType)
: base(underlyingType)
{