private static MessagePackSerializer CreateArraySerializer(SerializationContext context, Type targetType, PolymorphismSchema itemsSchema) { #if DEBUG Contract.Assert(targetType.IsArray, "targetType.IsArray"); #endif // DEBUG return(ArraySerializer.Create(context, targetType, itemsSchema)); }
private static IMessagePackSingleObjectSerializer CreateArraySerializer(SerializationContext context, Type targetType) { #if DEBUG && !UNITY Contract.Assert(targetType.IsArray); #endif // DEBUG && !UNITY return(ArraySerializer.Create(context, targetType)); }