summaryrefslogtreecommitdiffstats
path: root/mono/DBusType/Array.cs
diff options
context:
space:
mode:
Diffstat (limited to 'mono/DBusType/Array.cs')
-rw-r--r--mono/DBusType/Array.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/mono/DBusType/Array.cs b/mono/DBusType/Array.cs
index bf41763c..dd93a5cc 100644
--- a/mono/DBusType/Array.cs
+++ b/mono/DBusType/Array.cs
@@ -106,6 +106,9 @@ namespace DBus.DBusType
public object Get(System.Type type)
{
+ if (type.IsArray)
+ type = type.GetElementType ();
+
if (Arguments.Suits(elementType, type.UnderlyingSystemType)) {
this.val = System.Array.CreateInstance(type.UnderlyingSystemType, elements.Count);
int i = 0;