summaryrefslogtreecommitdiffstats
path: root/mono/DBusType/Byte.cs
diff options
context:
space:
mode:
Diffstat (limited to 'mono/DBusType/Byte.cs')
-rw-r--r--mono/DBusType/Byte.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mono/DBusType/Byte.cs b/mono/DBusType/Byte.cs
index a3d0ac9c..2fb19aeb 100644
--- a/mono/DBusType/Byte.cs
+++ b/mono/DBusType/Byte.cs
@@ -41,7 +41,7 @@ namespace DBus.DBusType
public static bool Suits(System.Type type)
{
- if (type.IsEnum && type.UnderlyingSystemType == typeof(System.Byte)) {
+ if (type.IsEnum && Enum.GetUnderlyingType (type) == typeof(System.Byte)) {
return true;
}