Skip to content

Fix issue where RuntimeClassName for boxed type object was empty string#1548

Merged
manodasanW merged 2 commits intomasterfrom
manodasanw/typename
Mar 22, 2024
Merged

Fix issue where RuntimeClassName for boxed type object was empty string#1548
manodasanW merged 2 commits intomasterfrom
manodasanw/typename

Conversation

@manodasanW
Copy link
Member

If someone called GetRuntimeClassName on a boxed type object, they previously got empty string. This was because we saw the type as System.RuntimeType and didn't recognize that as a WinRT type. This addresses it by checking for if the object derives from type and if so, returns the runtime class name for type.

@manodasanW manodasanW merged commit 435ad48 into master Mar 22, 2024
@manodasanW manodasanW deleted the manodasanw/typename branch March 22, 2024 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants