From fece29b071b474a6cd0945a83f561569c49da2c5 Mon Sep 17 00:00:00 2001 From: Tom Pipinic Date: Thu, 8 Dec 2022 10:54:24 +0100 Subject: [PATCH] Refactor namespaces --- Connected.Interop/Serializer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;