diff options
author | Joe Shaw <joe@novell.com> | 2004-12-17 22:21:16 +0000 |
---|---|---|
committer | John Palmieri <johnp@remedyz.boston.redhat.com> | 2006-06-28 08:15:39 -0400 |
commit | 0453ff1a4e36f0ec32bfd2dd20cb2c8e2d57ff11 (patch) | |
tree | af4308a1f6dcf63acefd0843466c51223acac9de | |
parent | 9285ed0f4cdc2d0d654521460a3a31f8723d6e6d (diff) |
2004-12-17 Joe Shaw <joeshaw@novell.com>
* 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.
-rw-r--r-- | mono/DBusType/Byte.cs | 2 | ||||
-rw-r--r-- | mono/DBusType/Int32.cs | 2 | ||||
-rw-r--r-- | mono/DBusType/Int64.cs | 2 | ||||
-rw-r--r-- | mono/DBusType/UInt32.cs | 2 | ||||
-rw-r--r-- | mono/DBusType/UInt64.cs | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/mono/DBusType/Byte.cs b/mono/DBusType/Byte.cs index a3d0ac9..2fb19ae 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; } diff --git a/mono/DBusType/Int32.cs b/mono/DBusType/Int32.cs index 681a55f..a759b79 100644 --- a/mono/DBusType/Int32.cs +++ b/mono/DBusType/Int32.cs @@ -36,7 +36,7 @@ namespace DBus.DBusType public static bool Suits(System.Type type) { - if (type.IsEnum && type.UnderlyingSystemType == typeof(System.Int32)) { + if (type.IsEnum && Enum.GetUnderlyingType (type) == typeof(System.Int32)) { return true; } diff --git a/mono/DBusType/Int64.cs b/mono/DBusType/Int64.cs index 741d272..6aea7ee 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; } diff --git a/mono/DBusType/UInt32.cs b/mono/DBusType/UInt32.cs index e97aa37..b55893d 100644 --- a/mono/DBusType/UInt32.cs +++ b/mono/DBusType/UInt32.cs @@ -36,7 +36,7 @@ namespace DBus.DBusType public static bool Suits(System.Type type) { - if (type.IsEnum && type.UnderlyingSystemType == typeof(System.UInt32)) { + if (type.IsEnum && Enum.GetUnderlyingType (type) == typeof(System.UInt32)) { return true; } diff --git a/mono/DBusType/UInt64.cs b/mono/DBusType/UInt64.cs index 84fef06..c987a91 100644 --- a/mono/DBusType/UInt64.cs +++ b/mono/DBusType/UInt64.cs @@ -36,7 +36,7 @@ namespace DBus.DBusType public static bool Suits(System.Type type) { - if (type.IsEnum && type.UnderlyingSystemType == typeof(System.UInt64)) { + if (type.IsEnum && Enum.GetUnderlyingType (type) == typeof(System.UInt64)) { return true; } |