Skip to content

IReference<Enum> should return Type() as PropertyType::UInt32 or Int32 #446

@jevansaks

Description

@jevansaks

The IReference implementation always returns "OtherType" from Type() but this causes XAML to go down a fallback codepath where it queries GetRuntimeClassName() and then uses the string name to try to figure out what the boxed type is.

This is just inefficient most of the time but with WINRT_LEAN_AND_MEAN it stops working because those strings aren't returned anymore.

Hopefully it's simple to fix the Type() implementation to return Int32 or UInt32 instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions