Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ public RequiresDynamicCodeAttribute(string message)
Message = message;
}

/// <summary>
/// When set to true, indicates that the annotation should not apply to static members.
/// </summary>
public bool ExcludeStatics { get; set; }

/// <summary>
/// Gets a message that contains information about the usage of dynamic code.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ public RequiresUnreferencedCodeAttribute(string message)
Message = message;
}

/// <summary>
/// When set to true, indicates that the annotation should not apply to static members.
/// </summary>
public bool ExcludeStatics { get; set; }

/// <summary>
/// Gets a message that contains information about the usage of unreferenced code.
/// </summary>
Expand Down
2 changes: 2 additions & 0 deletions src/libraries/System.Runtime/ref/System.Runtime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9029,13 +9029,15 @@ public RequiresAssemblyFilesAttribute(string message) { }
public sealed partial class RequiresDynamicCodeAttribute : System.Attribute
{
public RequiresDynamicCodeAttribute(string message) { }
public bool ExcludeStatics { get; set; }
public string Message { get { throw null; } }
public string? Url { get { throw null; } set { } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method, Inherited=false)]
public sealed partial class RequiresUnreferencedCodeAttribute : System.Attribute
{
public RequiresUnreferencedCodeAttribute(string message) { }
public bool ExcludeStatics { get; set; }
public string Message { get { throw null; } }
public string? Url { get { throw null; } set { } }
}
Expand Down
Loading