Skip to content

Project COM getters and setters as properties #738

@mcooley

Description

@mcooley

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions