Vor Kurzem aufgerufene Suchen


Keine vor kurzem aufgerufene Suchen

Unity SDK - exception in FallbackToDefaultEnumConverter



Gepostet 10. Dez. 2024

Hello!

 

I'm getting a runtime Exception in Zendesk.MessagingCore.RestClient.Converters.FallbackToDefaultEnumConverter CanConvert method

Enum underlying type and the object must be same type or object must be a String. Type passed in was 'System.Int32'; the enum underlying type was ‘System.UInt32’

It happen because I have enum MyEnum : uint defined in my project, that can't be handled by the Enum.IsDefined method used in the converter. And, unfortunately, it is impossible to change the underlying type of my enum in this case. 

 

What should I do?

 


0

0

0 Kommentare

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Sie finden nicht, wonach Sie suchen?

Neuer Post