Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Revert "Fixing Array Writing" #68

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions src/Protocol/MessageWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down