Skip to content

Commit 9a04d1c

Browse files
committed
Fixed generic lists serialization problem
1 parent d0f233b commit 9a04d1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/WorkflowCore.Persistence.MongoDB/Services/DataObjectSerializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private string GetTypeNameFromXPath(object root, string xPath)
7777
if (subPath[0] == '[')
7878
{
7979
var index = Int32.Parse(subPath.Trim('[', ']'));
80-
if (value.GetType().IsSubclassOf(typeof(IList)) || value.GetType().IsArray)
80+
if ((value is IList) || value.GetType().IsArray)
8181
{
8282
IList list = (IList) value;
8383
value = list[index];

0 commit comments

Comments
 (0)