[iOS] System.NotSupportedException: System.Collections.Immutable.IImmutableList[Type] on physical device #15719
-
Current behaviorEncountering a deserialization exception on iOS physical devices with System.Collections.Immutable.IImmutableList[Type] using a DelegatingHandler. The exact error is: This issue does not occur on Android devices or iOS simulators. Any insights or workarounds would be greatly appreciated. StackTrace:
Expected behaviorApp should be able to deserialize How to reproduce it (as minimally and precisely as possible)No response WorkaroundNo workaround Works on UWP/WinUIYes EnvironmentNo response NuGet package version(s)
Affected platformsiOS IDENo response IDE versionNo response Relevant pluginsNo response Anything else we need to know?I've checked is not related to the data recieved |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thanks for the report. This is a .NET behavior specific to iOS and System.Text.Json, and the fact that reflection emit is not supported on iOS. You'll need to use another type, or use a custom type converter, if supported by your scenario. |
Beta Was this translation helpful? Give feedback.
Thanks for the report. This is a .NET behavior specific to iOS and System.Text.Json, and the fact that reflection emit is not supported on iOS. You'll need to use another type, or use a custom type converter, if supported by your scenario.