diff options
Diffstat (limited to 'mono/DBusType/UInt64.cs')
-rw-r--r-- | mono/DBusType/UInt64.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mono/DBusType/UInt64.cs b/mono/DBusType/UInt64.cs index 7bcccaee..84fef06b 100644 --- a/mono/DBusType/UInt64.cs +++ b/mono/DBusType/UInt64.cs @@ -36,6 +36,10 @@ namespace DBus.DBusType public static bool Suits(System.Type type) { + if (type.IsEnum && type.UnderlyingSystemType == typeof(System.UInt64)) { + return true; + } + switch (type.ToString()) { case "System.UInt64": case "System.UInt64&": @@ -68,6 +72,10 @@ namespace DBus.DBusType public object Get(System.Type type) { + if (type.IsEnum) { + return Enum.ToObject(type, this.val); + } + switch (type.ToString()) { case "System.UInt64": |