Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 2f5e4ec

Browse files
committed
Use IsArray() wrapper which doesn't throw NIE in NETFX_CORE
1 parent 0b88f79 commit 2f5e4ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceStack.Text/Common/JsWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ private WriteObjectDelegate GetCoreWriteFn<T>()
313313
return specialWriteFn;
314314
}
315315

316-
if (typeof(T).IsArray)
316+
if (typeof(T).IsArray())
317317
{
318318
if (typeof(T) == typeof(byte[]))
319319
return (w, x) => WriteLists.WriteBytes(Serializer, w, x);

0 commit comments

Comments
 (0)