summaryrefslogtreecommitdiffstats
path: root/mono
diff options
context:
space:
mode:
authorJoe Shaw <joeshaw@novell.com>2004-12-17 22:21:16 +0000
committerJoe Shaw <joeshaw@novell.com>2004-12-17 22:21:16 +0000
commitb360305cdae87c8cb5d0f8cb167c8626238fc4e8 (patch)
tree67866a6ea4903e1354341ddecf134759d82e27f0 /mono
parentb60c835d346b7e214e627abd8e0cdf06932313a7 (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.
Diffstat (limited to 'mono')
-rw-r--r--mono/DBusType/Byte.cs2
-rw-r--r--mono/DBusType/Int32.cs2
-rw-r--r--mono/DBusType/Int64.cs2
-rw-r--r--mono/DBusType/UInt32.cs2
-rw-r--r--mono/DBusType/UInt64.cs2
5 files changed, 5 insertions, 5 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;
}
diff --git a/mono/DBusType/Int32.cs b/mono/DBusType/Int32.cs
index 681a55f3..a759b794 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 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;
}
diff --git a/mono/DBusType/UInt32.cs b/mono/DBusType/UInt32.cs
index e97aa37d..b55893d3 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 84fef06b..c987a918 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;
}