mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-02-07 00:30:30 +01:00
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.
This commit is contained in:
parent
b60c835d34
commit
b360305cda
6 changed files with 14 additions and 5 deletions
|
|
@ -1,3 +1,12 @@
|
|||
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.
|
||||
|
||||
2004-11-27 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* dbus/dbus-string.h (_dbus_string_get_byte): inline when asserts
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue