Your issue is that type alias definitions are not allowed in code blocks. Move the definition to before the class definition.
Alias Any Type in C#12
Shervan360
1,661
Reputation points
Hello,
I want to use the new feature in C#12, but the compiler doesn't know this feature.
Developer technologies | C#
11,582 questions
Accepted answer
-
Bruce (SqlWork.com) 78,236 Reputation points Volunteer Moderator
2024-08-23T15:25:11.9833333+00:00