From f3d051642805f6c653231086c64982e5822bff41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Kie=C3=9F?= Date: Fri, 16 Feb 2018 14:17:15 +0100 Subject: [PATCH] Revert "Fixing Array Writing" --- src/Protocol/MessageWriter.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Protocol/MessageWriter.cs b/src/Protocol/MessageWriter.cs index a58bd65..29801e4 100644 --- a/src/Protocol/MessageWriter.cs +++ b/src/Protocol/MessageWriter.cs @@ -356,13 +356,8 @@ public void Write (object val) } Type type = val.GetType (); - - // TODO: workaround issue with array being written as variant - // See PR for context: https://github.com/mono/dbus-sharp/pull/58 - if (type.IsArray) - Write (type, val); - else - WriteVariant (type, val); + + WriteVariant (type, val); } public void WriteVariant (Type type, object val)