1- #region -- License Terms --
1+ #region -- License Terms --
22//
33// MessagePack for CLI
44//
5- // Copyright (C) 2015-2016 FUJIWARA, Yusuke
5+ // Copyright (C) 2015-2018 FUJIWARA, Yusuke
66//
77// Licensed under the Apache License, Version 2.0 (the "License");
88// you may not use this file except in compliance with the License.
1818//
1919#endregion -- License Terms --
2020
21+ #if UNITY_5 || UNITY_STANDALONE || UNITY_WEBPLAYER || UNITY_WII || UNITY_IPHONE || UNITY_ANDROID || UNITY_PS3 || UNITY_XBOX360 || UNITY_FLASH || UNITY_BKACKBERRY || UNITY_WINRT
22+ #define UNITY
23+ #endif
24+
2125using System ;
2226using System . Collections . Generic ;
2327using System . Globalization ;
2832
2933namespace MsgPack . Serialization
3034{
31- internal static partial class AotHelper
35+ #if UNITY && DEBUG
36+ public
37+ #else
38+ internal
39+ #endif
40+ static partial class AotHelper
3241 {
3342 public static void HandleAotError ( Type mayBeGenericArgument , Exception mayBeAotError )
3443 {
@@ -95,12 +104,12 @@ public static object CreateSystemCollectionsGenericDictionary( ConstructorInfo c
95104 return constructor . InvokePreservingExceptionType ( initialCapacity , GetEqualityComparer ( keyType ) ) ;
96105 }
97106
98- internal static IEqualityComparer < T > GetEqualityComparer < T > ( )
107+ public static IEqualityComparer < T > GetEqualityComparer < T > ( )
99108 {
100109 return ( IEqualityComparer < T > ) GetEqualityComparer ( typeof ( T ) ) ;
101110 }
102111
103- internal static object GetEqualityComparer ( Type type )
112+ public static object GetEqualityComparer ( Type type )
104113 {
105114 lock ( EqualityComparerTable )
106115 {
@@ -118,7 +127,7 @@ internal static object GetEqualityComparer( Type type )
118127 }
119128 }
120129
121- internal static void PrepareEqualityComparer < T > ( )
130+ public static void PrepareEqualityComparer < T > ( )
122131 {
123132 lock ( EqualityComparerTable )
124133 {
0 commit comments