-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project COM getters and setters as properties #738
Comments
I think this is an excellent suggestion. And we will usually be able to do it. The exception will be when the virtual method table describes the property getter and setter, but not in neighboring rows in the table. In such a case, CSWin32 at best can emit only one of them as a property due to C# language limitations. |
Trivia: |
Consider APIs like Windows.UI.Accessibility.IUIAutomationElement.get_CachedAcceleratorKey. This should be exposed to .NET developers as a property instead of a method. The
get_
prefix should be omitted.I want this so I can use cswin32 to seamlessly replace interop assemblies generated by tlbimp. This change would also make cswin32 more consistent with the Rust win32 projection (which also omits the get_ prefix) and more consistent with CsWinRT.
The metadata already puts the SpecialName attribute on methods which need this treatment.
The text was updated successfully, but these errors were encountered: