Academic question: does the runtime really need properties and events? #83741
Unanswered
TahirAhmadov
asked this question in
General
Replies: 1 comment 2 replies
-
In my sight of view, they are supported by metadata representation, not the execution engine. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I understand languages like C# and VB.NET can and probably want to provide these features. However, was it necessary to add the support for these member types to the runtime itself? Couldn't have the language (compiling for a runtime without properties/events) just created the accessor methods directly, and decorated them with some attributes, to provide the necessary language features? Similarly, these attributes could have also been used to enumerate "properties", similarly to
Type.GetProperties
etc. methods. Am I way off base here?Obviously, this is not a request to get rid of properties/events HAHAHA
Beta Was this translation helpful? Give feedback.
All reactions