diff --git a/src/Protocol/MessageWriter.cs b/src/Protocol/MessageWriter.cs index 29801e4..a58bd65 100644 --- a/src/Protocol/MessageWriter.cs +++ b/src/Protocol/MessageWriter.cs @@ -356,8 +356,13 @@ public void Write (object val) } Type type = val.GetType (); - - WriteVariant (type, val); + + // 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); } public void WriteVariant (Type type, object val)