We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25689ea commit ac3f02fCopy full SHA for ac3f02f
1 file changed
src/MsgPack/Serialization/ReflectionSerializers/ReflectionSerializerHelper.cs
@@ -39,10 +39,14 @@ internal static class ReflectionSerializerHelper
39
{
40
public static MessagePackSerializer<T> CreateReflectionEnuMessagePackSerializer<T>( SerializationContext context )
41
42
+#if UNITY_IPHONE
43
+ throw new PlatformNotSupportedException( "On-the-fly enum serializer generation is not supported in Unity iOS. Use pre-generated serializer instead." );
44
+#else
45
return
46
Activator.CreateInstance( typeof( ReflectionEnumMessagePackSerializer<> ).MakeGenericType( typeof( T ) ), context )
47
as
48
MessagePackSerializer<T>;
49
+#endif
50
}
51
52
public static MessagePackSerializer<T> CreateArraySerializer<T>(
0 commit comments