From b360305cdae87c8cb5d0f8cb167c8626238fc4e8 Mon Sep 17 00:00:00 2001 From: Joe Shaw Date: Fri, 17 Dec 2004 22:21:16 +0000 Subject: 2004-12-17 Joe Shaw * mono/DBusType/Byte.cs, mono/DBusType/Int32.cs, mono/DBusType/Int64.cs, mono/DBusType/UInt32.cs, mono/DBusType/UInt64.cs: Use Enum.GetUnderlyingType() instead of Type.UnderlyingSystemType to get the actual system type underneath. This code previously depended on the broken Mono behavior, which was fixed in 1.1.3. --- mono/DBusType/Int64.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mono/DBusType/Int64.cs') diff --git a/mono/DBusType/Int64.cs b/mono/DBusType/Int64.cs index 741d272a..6aea7ee8 100644 --- a/mono/DBusType/Int64.cs +++ b/mono/DBusType/Int64.cs @@ -36,7 +36,7 @@ namespace DBus.DBusType public static bool Suits(System.Type type) { - if (type.IsEnum && type.UnderlyingSystemType == typeof(System.Int64)) { + if (type.IsEnum && Enum.GetUnderlyingType (type) == typeof(System.Int64)) { return true; } -- cgit