Restore Mono compatibility with UnmanagedType enum
authorSebastien Pouliot <sebastien@xamarin.com>
Wed, 22 Apr 2015 01:20:50 +0000 (21:20 -0400)
committerMarek Safar <marek.safar@gmail.com>
Mon, 2 May 2016 22:10:10 +0000 (00:10 +0200)
Some values, like CustomMarshaler, are used by XI unit tests.

mcs/class/referencesource/mscorlib/system/runtime/interopservices/attributes.cs

index c8c0ccd0130da8fc6ae5633bdfd7a5e4a3ef9fe2..13aefb4de2890e7824a74fb0d5b7be0d166393a5 100644 (file)
@@ -477,7 +477,7 @@ namespace System.Runtime.InteropServices{
 
         Currency = 0xf,         // A currency
 
-#if FEATURE_COMINTEROP || FEATURE_LEGACYNETCF
+#if FEATURE_COMINTEROP || FEATURE_LEGACYNETCF || MONO
         BStr             = 0x13,        // OLE Unicode BSTR
 #endif //FEATURE_COMINTEROP || FEATURE_LEGACYNETCF
 
@@ -491,7 +491,7 @@ namespace System.Runtime.InteropServices{
 
         IUnknown = 0x19,        // COM IUnknown pointer. 
 
-#if FEATURE_COMINTEROP || FEATURE_LEGACYNETCF
+#if FEATURE_COMINTEROP || FEATURE_LEGACYNETCF || MONO
         IDispatch        = 0x1a,        // COM IDispatch pointer
 #endif //FEATURE_COMINTEROP || FEATURE_LEGACYNETCF
 
@@ -509,7 +509,7 @@ namespace System.Runtime.InteropServices{
 
         SysUInt = 0x20,
 
-#if FEATURE_COMINTEROP || FEATURE_LEGACYNETCF
+#if FEATURE_COMINTEROP || FEATURE_LEGACYNETCF || MONO
         VBByRefStr       = 0x22,         
 
         AnsiBStr         = 0x23,        // OLE BSTR containing SBCS characters
@@ -527,7 +527,7 @@ namespace System.Runtime.InteropServices{
 
         LPStruct = 0x2b,        // Pointer to a structure
 
-#if FEATURE_COMINTEROP || FEATURE_LEGACYNETCF
+#if FEATURE_COMINTEROP || FEATURE_LEGACYNETCF || MONO
         CustomMarshaler  = 0x2c,        
 #endif //FEATURE_COMINTEROP || FEATURE_LEGACYNETCF