Does WinRT have Garbage Collection?

2020-06-07 06:29发布

问题:

Does WinRT have Garbage Collection?

Or does it do reference counting as does COM?

回答1:

I found this article, which cites Microsoft's Martyn Lovell:

"WinRT objects are reference counted like COM for memory management, with weak references to avoid circularity."

Apparently this was mentioned at his talk on WinRT internals at the BUILD convention.