CsWinRT icon indicating copy to clipboard operation
CsWinRT copied to clipboard

Remove generated 'As<I>()' methods for static types

Open Sergio0694 opened this issue 1 month ago • 1 comments

This PR removes the generated As<I>() methods on static RCW types. This method is:

  • Unnecessary, now that ActivationFactory is public
  • Only works with either [ComImport] types, or via IDIC
  • It doesn't exist on non-static RCW types, which is not consistent (eg. Win2D uses that)

Devs should just use ActivationFactory directly, which also exposes new high perf methods.

Sergio0694 avatar May 10 '24 09:05 Sergio0694