-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[API Implementation]: System.Diagnostics.CodeAnalysis.StringSyntaxAttribute #62995
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
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 |
|---|---|---|
|
|
@@ -2,6 +2,7 @@ | |
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|
|
||
| using System; | ||
| using System.Diagnostics.CodeAnalysis; | ||
| using System.Text; | ||
|
|
||
| namespace Microsoft.Extensions.Logging.Console | ||
|
|
@@ -21,6 +22,7 @@ public ConsoleFormatterOptions() { } | |
| /// <summary> | ||
| /// Gets or sets format string used to format timestamp in logging messages. Defaults to <c>null</c>. | ||
| /// </summary> | ||
| [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] | ||
| public string TimestampFormat { get; set; } | ||
|
Member
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. oh interesting. so we're doing this for more than just arguments. that's def something i didn't realize. will have to update roslyn side for sure to understand that :)
Member
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. You and Jason pushed for the attribute to be for properties and fields, too. So, yeah :-) |
||
|
|
||
| /// <summary> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.