Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Add constructors and Message, URL properties
  • Loading branch information
Prashanth Govindarajan committed Aug 5, 2021
commit 3d82b1b2aba1a829b48402fcd3abafe6060e0f1a
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,14 @@ namespace System.Runtime.Versioning
public sealed class RequiresPreviewFeaturesAttribute : Attribute
{
public RequiresPreviewFeaturesAttribute() { }

public RequiresPreviewFeaturesAttribute(string? message)
{
Message = message;
}

public string? Message { get; }

public string? URL { get; set; }
}
}
3 changes: 3 additions & 0 deletions src/libraries/System.Runtime/ref/System.Runtime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13612,6 +13612,9 @@ private protected OSPlatformAttribute(string platformName) { }
public sealed partial class RequiresPreviewFeaturesAttribute : System.Attribute
{
public RequiresPreviewFeaturesAttribute() { }
public RequiresPreviewFeaturesAttribute(string? message) { }
public string? Message { get { throw null; } }
public string? URL { get { throw null; } set { } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Property, Inherited=false)]
[System.Diagnostics.ConditionalAttribute("RESOURCE_ANNOTATION_WORK")]
Expand Down