diff --git a/Connected.Interop/Serializer.cs b/Connected.Interop/Serializer.cs index 7a166be..cc67925 100644 --- a/Connected.Interop/Serializer.cs +++ b/Connected.Interop/Serializer.cs @@ -83,7 +83,7 @@ public static class Serializer if (value is null) return; - var enumerable = property.GetValue(value) as IEnumerable; + var enumerable = property is not null ? property.GetValue(value) as IEnumerable : value as IEnumerable; if (enumerable is null) return;