CsWinRT icon indicating copy to clipboard operation
CsWinRT copied to clipboard

Provide type conversion: PackageVersion to System.Version

Open jaigak opened this issue 3 years ago • 1 comments

WinRT APIs related to packaging return a PackageVersion structure for reporting version info which can't be directly passed to code that expects System.Version, so consider adding an implicit conversion on PackageVersion to the System.Version class.

jaigak avatar Feb 13 '22 06:02 jaigak

I would like this very much! From my past experience the quick note, that the version structs differ in data type: System.Version uses int32 and PackageVersion ushort. But for the direction you are suggesting, that shouldn't be an issue.

Marv51 avatar Feb 14 '22 07:02 Marv51