RequiresUnreferencedCodeAttribute
/// Indicates that the specified method requires dynamic access to code that is not referenced
statically, for example through Reflection.
using System.Runtime.CompilerServices;
namespace System.Diagnostics.CodeAnalysis
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Constructor | AttributeTargets.Method, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class RequiresUnreferencedCodeAttribute : Attribute
{
public string Message { get; }
[System.Runtime.CompilerServices.Nullable(2)]
[field: System.Runtime.CompilerServices.Nullable(2)]
public string Url {
[System.Runtime.CompilerServices.NullableContext(2)]
get;
[System.Runtime.CompilerServices.NullableContext(2)]
set;
}
public RequiresUnreferencedCodeAttribute(string message)
{
Message = message;
}
}
}