Skip to content
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

Adding README for Microsoft.Extensions.EnumStrings #4621

Merged
merged 3 commits into from
Oct 27, 2023

Conversation

joperezr
Copy link
Member

@joperezr joperezr commented Oct 26, 2023

null

Microsoft Reviewers: Open in CodeFlow

To use this feature, you can annotate an enum value with the `EnumStringAttribute` attribute. For example:

```csharp
using Microsoft.Extensions.EnumStrings;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@geeknoid should we consider moving the EnumStrings attribute to the usual System.Runtime.CompilerServices namespace where we put the rest of the attributes in .NET in favor of a future move of this down to dotnet/runtime?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We certainly can.

Co-authored-by: Sébastien Ros <sebastienros@gmail.com>
Co-authored-by: Chris Ross <Tratcher@Outlook.com>
@joperezr joperezr enabled auto-merge (squash) October 27, 2023 21:36
@joperezr joperezr merged commit 56133fb into release/8.0 Oct 27, 2023
6 checks passed
@joperezr joperezr deleted the joperezr/EnumStrings branch October 27, 2023 21:55
@ghost ghost locked as resolved and limited conversation to collaborators Nov 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants