-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Obsolete TextType.Html
for .NET 10
#29685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: net10.0
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,5 +17,6 @@ public enum TextType | |
/// The subset of supported HTML tags varies by platform. Each platform's native text rendering engine | ||
/// determines which HTML tags and attributes are supported. | ||
/// </remarks> | ||
[System.Obsolete] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please update the public XML documentation under Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding the Obsolete attribute to the public Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||
Html | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -303,7 +303,9 @@ public async Task HtmlTextInitializesCorrectly() | |
{ | ||
var label = new LabelStub() | ||
{ | ||
#pragma warning disable CS0612 // Type or member is obsolete | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [nitpick] The inline Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||
TextType = TextType.Html, | ||
#pragma warning restore CS0612 // Type or member is obsolete | ||
Text = "<h2><strong>Test1 </strong>Test2</h2>" | ||
}; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider providing a message in the Obsolete attribute to guide developers on migration or alternative APIs (e.g.,
[Obsolete("Use CustomHtmlLabel instead.")]
).Copilot uses AI. Check for mistakes.