-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Closed
Labels
⌚ Not TriagedSource - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcfundamentals/subsvc
Description
Description
In the PositionOptions class, maybe we want to use the required keyword because it's the more modern syntax.
Example:
public class PositionOptions
{
public const string Position = "Position";
public required string Title { get; set; }
public required string Name { get; set; }
}If you agree, we should also change the other instances of String.Empty.
Page URL
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/options?view=aspnetcore-9.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/fundamentals/configuration/options.md
Document ID
dc7e3449-650b-d117-5eac-69e5ccb250cb
Article author
Metadata
- ID: ed39cb0e-aa85-8bba-ffb4-859b56a60723
- Service: aspnet-core
- Sub-service: fundamentals
Metadata
Metadata
Assignees
Labels
⌚ Not TriagedSource - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcfundamentals/subsvc