Suggest to find all the properties
- Dominant language
- C#
- Stars
- 2.4k
- Forks
- 184
- PR merge metrics
- No merged PRs in 30d
Description
private static TEnum[] GetAllOptions()
{
Type baseType = typeof(TEnum);
return Assembly.GetAssembly(baseType)
.GetTypes()
.Where(t => baseType.IsAssignableFrom(t))
.SelectMany(t => t.GetFieldsOfType() || t.GetPropertiesOfType())
.OrderBy(t => t.Name)
.ToArray();
}
Contributor guide
Research direction
The issue names only GetAllOptions and its reflection calls; start by locating that entry point and inspecting how GetFieldsOfType is defined. Confirm the intended behavior for discovering both fields and properties, then identify or add tests that establish what counts as a complete result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100