Skip to content

Commit eb2701f

Browse files
committed
Fix build error in xamarin.
1 parent f82e015 commit eb2701f

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/MsgPack/Serialization/MessagePackSerializer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,15 +212,15 @@ internal static MessagePackSerializer<T> CreateInternal<T>( SerializationContext
212212
Contract.Ensures( Contract.Result<MessagePackSerializer<T>>() != null );
213213
#endif // !XAMIOS && !XAMDROID && !UNITY
214214

215-
#if DEBUG && !UNITY
215+
#if DEBUG && !UNITY && !XAMDROID && !XAMIOS
216216
SerializerDebugging.TraceEvent(
217217
"SerializationContext::CreateInternal<{0}>(@{1}, {2})",
218218
typeof( T ),
219219
context.GetHashCode(),
220220
schema == null ? "null" : schema.DebugString
221221
);
222222

223-
#endif // DEBUG && !UNITY
223+
#endif // DEBUG && !UNITY && !XAMDROID && !XAMIOS
224224
Type concreteType = null;
225225

226226
if ( typeof( T ).GetIsAbstract() || typeof( T ).GetIsInterface() )

src/MsgPack/Serialization/PolymorphismSchema.Internals.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,7 @@ partial class PolymorphismSchema
9595
/// ForPolymorphicTuple( Type targetType, PolymorphismSchema[] itemSchemaList )
9696
/// </summary>
9797
internal static readonly MethodInfo ForPolymorphicTupleMethod =
98-
FromExpression.ToMethod(
99-
( Type targetType, PolymorphismSchema[] itemSchemaList ) => ForPolymorphicTuple( targetType, itemSchemaList )
100-
);
98+
typeof( PolymorphismSchema ).GetMethod( "ForPolymorphicTuple", new[] { typeof( Type ), typeof( PolymorphismSchema[]) } );
10199
#endif // !WINDOWS_PHONE && !NETFX_35 && !UNITY
102100

103101
internal static readonly ConstructorInfo CodeTypeMapConstructor =

0 commit comments

Comments
 (0)