On Fri Aug 1 10:36:23 2025 +0000, Vibhav Pant wrote:
You're right, `Properties` is an `IMapView,` not `IMap`. However, since the underlying properties can be updated, we would still need an `IMap`-like collection of `(HSTRING, IInspectable)` pairs to store properties and implement `Update`. Instead of duplicating an `IMapView` implementation for Windows.Devices.Enumeration, I feel this is a better approach IMO.
Sure, it's better to reuse when we can. What I don't understand is how this reuse happens normally, is it usually source-based on winrt SDK, so you compile in some template everywhere, or libraries are expected to go through CoCreate* equivalent to import something like IMap which is so basic that it belongs to a standard library, if that exists for winrt.