Parsing Enum could be simplified
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 65/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- csharp
- Domain
- documentation
Research direction
Open entity-framework/core/modeling/value-conversions.md and locate the Value Conversions example containing the EquineBeast parsing code. Replace the verbose Enum.Parse example with the generic form shown in the issue, then check the rendered documentation to confirm the example is correct.
Written by the indexing model from the issue text.
Description
The code:
v => (EquineBeast)Enum.Parse(typeof(EquineBeast), v))
could be simplified:
v => Enum.Parse<EquineBeast>(v)
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 03dfe9f6-e831-ac3f-0b90-acb9b4c0f828
- Version Independent ID: a26156d1-a4b3-7df0-e63e-b8e9f804abbf
- Content: Value Conversions - EF Core
- Content Source: entity-framework/core/modeling/value-conversions.md
- Product: entity-framework
- Technology: entity-framework-core
- GitHub Login: @ajcvickers
- Microsoft Alias: avickers
- Dominant language
- Mermaid
- Stars
- 1.7k
- Forks
- 2k
- Avg merge
- 14h 54m
- Merged PRs (30d)
- 5
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dotnet/EntityFramework.Docs
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
dotnet/EntityFramework.Docs#5455 ·
-
Difficulty 2/5 Half a day Newbie friendliness 72/100
dotnet/EntityFramework.Docs#4774 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
dotnet/EntityFramework.Docs#4100 · 1 comment ·
-
area-tools
Difficulty 1/5 Under an hour Newbie friendliness 62/100
dotnet/EntityFramework.Docs#3927 · 1 comment ·
-
area-change-tracking
Difficulty 1/5 Under an hour Newbie friendliness 62/100
dotnet/EntityFramework.Docs#3792 ·
All issues in dotnet/EntityFramework.Docs
Similar issues
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
fullcalendar/fullcalendar#8106 ·