-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprompts
More file actions
17 lines (10 loc) · 1.06 KB
/
Copy pathprompts
File metadata and controls
17 lines (10 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
implement
protect against malicious input
encapsulate OnboardingStatus and OnboardingStatusExtensions in a class with instance singletons instead of the enum.
Make an incremental source generator to generate extension classes such as OnboardingStatusExtensions for enums decorated with a marker attribute. Decorate enum fields with attributes for specific display names and parsing variants. The generated code should not use reflection but generate specific code based target enum type and its attributes. start with just stubbing the generator to produce an empty extension method class. I'll let you know when I want to include all the functionality. Don't make any changes to my project files. Use ForAttributeWithMetadataName. Make it super optimized.
do 1-3 above, ie Parse method with validation and normalization
ToDisplayString method with custom display names
Support for parsing variants
clean it up with raw string literals
Make an anlysizer to remind me to add the GenerateEnumExtensionsAttribute to all my enums. use the existing gernerator project
add a code fix