Author: dick
Date: 2007-05-02 12:38:28 -0400 (Wed, 02 May 2007)
New Revision: 76579
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/ArrayWithOffset.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/AutomationProxyAttribute.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/BINDPTR.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/BIND_OPTS.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/BStrWrapper.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/BestFitMappingAttribute.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/CALLCONV.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/COMException.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/CONNECTDATA.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/CallingConvention.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/ChangeLog
trunk/mcs/class/corlib/System.Runtime.InteropServices/CharSet.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/ClassInterfaceAttribute.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/ClassInterfaceType.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/CoClassAttribute.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComAliasNameAttribute.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComCompatibleVersionAttribute.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComConversionLossAttribute.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComDefaultInterfaceAttribute.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComEventInterfaceAttribute.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComImportAttribute.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComInterfaceType.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComMemberType.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComRegisterFunctionAttribute.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComUnregisterFunctionAttribute.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComVisible.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/CriticalHandle.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/CurrencyWrapper.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/DESCKIND.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/DISPPARAMS.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/DefaultCharSetAttribute.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/DispIdAttribute.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/DispatchWrapper.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/ELEMDESC.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/EXCEPINFO.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/ErrorWrapper.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/ExporterEventKind.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/ExtensibleClassFactory.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/ExternalException.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/PARAMDESC.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/PARAMFLAG.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/RegistrationClassContext.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/SafeHandle.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/StructLayoutAttribute.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/TYPEKIND.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/TYPELIBATTR.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/TypeLibConverter.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/TypeLibImporterFlags.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/UCOMIMoniker.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/UnmanagedType.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/VARDESC.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/VARFLAGS.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/_ConstructorInfo.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/_EventInfo.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/_Exception.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/_FieldInfo.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/_MemberInfo.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/_MethodBase.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/_MethodInfo.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/_PropertyInfo.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/_Type.cs
Log:
2007-05-02 Dick Porter <[EMAIL PROTECTED]>
* _ConstructorInfo.cs:
* _EventInfo.cs:
* _Exception.cs:
* _FieldInfo.cs:
* _MemberInfo.cs:
* _MethodBase.cs:
* _MethodInfo.cs:
* _PropertyInfo.cs:
* _Type.cs:
* UCOMIMoniker.cs:
* AutomationProxyAttribute.cs:
* BestFitMappingAttribute.cs:
* BStrWrapper.cs:
* ClassInterfaceAttribute.cs:
* CoClassAttribute.cs:
* ComAliasNameAttribute.cs:
* ComCompatibleVersionAttribute.cs:
* ComConversionLossAttribute.cs:
* ComDefaultInterfaceAttribute.cs:
* ComEventInterfaceAttribute.cs:
* COMException.cs:
* ComImportAttribute.cs:
* ComObjectInUseException.cs:
* ComRegisterFunctionAttribute.cs:
* ComUnregisterFunctionAttribute.cs:
* ComVisible.cs:
* CriticalHandle.cs:
* CurrencyWrapper.cs:
* DefaultCharSetAttribute.cs:
* DispatchWrapper.cs:
* DispIdAttribute.cs:
* ErrorWrapper.cs:
* ExtensibleClassFactory.cs:
* ExternalException.cs:
* Marshal.cs:
* SafeHandle.cs:
* StructLayoutAttribute.cs:
* TypeLibConverter.cs:
* ArrayWithOffset.cs:
* BIND_OPTS.cs:
* BINDPTR.cs:
* CONNECTDATA.cs:
* DISPPARAMS.cs:
* ELEMDESC.cs:
* EXCEPINFO.cs:
* PARAMDESC.cs:
* TYPELIBATTR.cs:
* VARDESC.cs:
* CALLCONV.cs:
* CallingConvention.cs:
* CharSet.cs:
* ClassInterfaceType.cs:
* ComInterfaceType.cs:
* ComMemberType.cs:
* DESCKIND.cs:
* ExporterEventKind.cs:
* PARAMFLAG.cs:
* RegistrationClassContext.cs:
* TYPEKIND.cs:
* TypeLibImporterFlags.cs:
* UnmanagedType.cs:
* VARFLAGS.cs: Update to 2.0 profile
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/ArrayWithOffset.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/ArrayWithOffset.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/ArrayWithOffset.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -33,6 +33,10 @@
namespace System.Runtime.InteropServices {
+#if NET_2_0
+ [Serializable]
+ [ComVisible (true)]
+#endif
public struct ArrayWithOffset {
object array;
int offset;
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/AutomationProxyAttribute.cs
===================================================================
---
trunk/mcs/class/corlib/System.Runtime.InteropServices/AutomationProxyAttribute.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++
trunk/mcs/class/corlib/System.Runtime.InteropServices/AutomationProxyAttribute.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -35,6 +35,9 @@
[AttributeUsage (AttributeTargets.Assembly | AttributeTargets.Class |
AttributeTargets.Interface, Inherited=false)]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public sealed class AutomationProxyAttribute : Attribute
{
bool val;
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/BINDPTR.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/BINDPTR.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/BINDPTR.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -34,8 +34,9 @@
{
#if NET_2_0
[Obsolete]
+#else
+ [ComVisible(false)]
#endif
- [ComVisible(false)]
[StructLayout (LayoutKind.Explicit, CharSet = CharSet.Unicode)]
public struct BINDPTR {
[FieldOffset (0)]
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/BIND_OPTS.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/BIND_OPTS.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/BIND_OPTS.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -32,8 +32,9 @@
{
#if NET_2_0
[Obsolete]
+#else
+ [ComVisible (false)]
#endif
- [ComVisible (false)]
[StructLayout (LayoutKind.Sequential)]
public struct BIND_OPTS
{
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/BStrWrapper.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/BStrWrapper.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/BStrWrapper.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -11,6 +11,8 @@
namespace System.Runtime.InteropServices
{
+ [Serializable]
+ [ComVisible (true)]
public sealed class BStrWrapper
{
string _value;
@@ -23,4 +25,4 @@
public string WrappedObject { get { return _value; } }
}
}
-#endif
\ No newline at end of file
+#endif
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/BestFitMappingAttribute.cs
===================================================================
---
trunk/mcs/class/corlib/System.Runtime.InteropServices/BestFitMappingAttribute.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++
trunk/mcs/class/corlib/System.Runtime.InteropServices/BestFitMappingAttribute.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -36,6 +36,9 @@
[AttributeUsage (AttributeTargets.Assembly | AttributeTargets.Class |
AttributeTargets.Struct | AttributeTargets.Interface,
Inherited=false)]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public sealed class BestFitMappingAttribute : Attribute {
bool bfm;
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/CALLCONV.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/CALLCONV.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/CALLCONV.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -32,9 +32,10 @@
{
#if NET_2_0
[Obsolete]
+#else
+ [ComVisible (false)]
#endif
[Serializable]
- [ComVisible (false)]
public enum CALLCONV
{
CC_CDECL = 1,
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/COMException.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/COMException.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/COMException.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -35,6 +35,9 @@
namespace System.Runtime.InteropServices {
[Serializable]
+#if NET_2_0
+[ComVisible (true)]
+#endif
public class COMException : ExternalException {
public COMException ()
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/CONNECTDATA.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/CONNECTDATA.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/CONNECTDATA.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -32,8 +32,9 @@
{
#if NET_2_0
[Obsolete]
+#else
+ [ComVisible (false)]
#endif
- [ComVisible (false)]
[StructLayout (LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct CONNECTDATA
{
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/CallingConvention.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/CallingConvention.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/CallingConvention.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -37,6 +37,7 @@
#if NET_2_0
[Serializable]
+ [ComVisible (true)]
#endif
public enum CallingConvention {
Winapi = 1,
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/ChangeLog
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/ChangeLog
2007-05-02 16:38:28 UTC (rev 76579)
@@ -1,3 +1,68 @@
+2007-05-02 Dick Porter <[EMAIL PROTECTED]>
+
+ * _ConstructorInfo.cs:
+ * _EventInfo.cs:
+ * _Exception.cs:
+ * _FieldInfo.cs:
+ * _MemberInfo.cs:
+ * _MethodBase.cs:
+ * _MethodInfo.cs:
+ * _PropertyInfo.cs:
+ * _Type.cs:
+ * UCOMIMoniker.cs:
+ * AutomationProxyAttribute.cs:
+ * BestFitMappingAttribute.cs:
+ * BStrWrapper.cs:
+ * ClassInterfaceAttribute.cs:
+ * CoClassAttribute.cs:
+ * ComAliasNameAttribute.cs:
+ * ComCompatibleVersionAttribute.cs:
+ * ComConversionLossAttribute.cs:
+ * ComDefaultInterfaceAttribute.cs:
+ * ComEventInterfaceAttribute.cs:
+ * COMException.cs:
+ * ComImportAttribute.cs:
+ * ComObjectInUseException.cs:
+ * ComRegisterFunctionAttribute.cs:
+ * ComUnregisterFunctionAttribute.cs:
+ * ComVisible.cs:
+ * CriticalHandle.cs:
+ * CurrencyWrapper.cs:
+ * DefaultCharSetAttribute.cs:
+ * DispatchWrapper.cs:
+ * DispIdAttribute.cs:
+ * ErrorWrapper.cs:
+ * ExtensibleClassFactory.cs:
+ * ExternalException.cs:
+ * Marshal.cs:
+ * SafeHandle.cs:
+ * StructLayoutAttribute.cs:
+ * TypeLibConverter.cs:
+ * ArrayWithOffset.cs:
+ * BIND_OPTS.cs:
+ * BINDPTR.cs:
+ * CONNECTDATA.cs:
+ * DISPPARAMS.cs:
+ * ELEMDESC.cs:
+ * EXCEPINFO.cs:
+ * PARAMDESC.cs:
+ * TYPELIBATTR.cs:
+ * VARDESC.cs:
+ * CALLCONV.cs:
+ * CallingConvention.cs:
+ * CharSet.cs:
+ * ClassInterfaceType.cs:
+ * ComInterfaceType.cs:
+ * ComMemberType.cs:
+ * DESCKIND.cs:
+ * ExporterEventKind.cs:
+ * PARAMFLAG.cs:
+ * RegistrationClassContext.cs:
+ * TYPEKIND.cs:
+ * TypeLibImporterFlags.cs:
+ * UnmanagedType.cs:
+ * VARFLAGS.cs: Update to 2.0 profile
+
2007-04-15 Alp Toker <[EMAIL PROTECTED]>
* Marshal.cs: Add new 2.0 Copy() from IntPtr[] overload.
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/CharSet.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/CharSet.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/CharSet.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -37,6 +37,7 @@
#if NET_2_0
[Serializable]
+ [ComVisible (true)]
#endif
public enum CharSet {
None = 1,
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/ClassInterfaceAttribute.cs
===================================================================
---
trunk/mcs/class/corlib/System.Runtime.InteropServices/ClassInterfaceAttribute.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++
trunk/mcs/class/corlib/System.Runtime.InteropServices/ClassInterfaceAttribute.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -36,6 +36,9 @@
[AttributeUsage(AttributeTargets.Assembly |
AttributeTargets.Class, Inherited=false)]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public sealed class ClassInterfaceAttribute : Attribute {
private ClassInterfaceType ciType;
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/ClassInterfaceType.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/ClassInterfaceType.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/ClassInterfaceType.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -34,6 +34,9 @@
namespace System.Runtime.InteropServices {
[Serializable]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public enum ClassInterfaceType
{
None = 0,
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/CoClassAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/CoClassAttribute.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/CoClassAttribute.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -32,6 +32,9 @@
namespace System.Runtime.InteropServices {
[AttributeUsage (AttributeTargets.Interface, Inherited=false)]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public sealed class CoClassAttribute : Attribute
{
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComAliasNameAttribute.cs
===================================================================
---
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComAliasNameAttribute.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComAliasNameAttribute.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -35,6 +35,9 @@
[AttributeUsage (AttributeTargets.Property | AttributeTargets.Field |
AttributeTargets.Parameter |
AttributeTargets.ReturnValue,
Inherited=false)]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public sealed class ComAliasNameAttribute : Attribute
{
string val;
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComCompatibleVersionAttribute.cs
===================================================================
---
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComCompatibleVersionAttribute.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComCompatibleVersionAttribute.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -36,6 +36,9 @@
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false,
Inherited = false)]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public sealed class ComCompatibleVersionAttribute : Attribute
{
private int major;
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComConversionLossAttribute.cs
===================================================================
---
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComConversionLossAttribute.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComConversionLossAttribute.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -34,6 +34,9 @@
namespace System.Runtime.InteropServices {
[AttributeUsage (AttributeTargets.All, Inherited=false)]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public sealed class ComConversionLossAttribute : Attribute
{
public ComConversionLossAttribute ()
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComDefaultInterfaceAttribute.cs
===================================================================
---
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComDefaultInterfaceAttribute.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComDefaultInterfaceAttribute.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -12,6 +12,7 @@
namespace System.Runtime.InteropServices
{
[AttributeUsage (AttributeTargets.Class, Inherited = false)]
+ [ComVisible (true)]
public sealed class ComDefaultInterfaceAttribute : Attribute
{
Type _type;
@@ -24,4 +25,4 @@
public Type Value { get { return _type; }}
}
}
-#endif
\ No newline at end of file
+#endif
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComEventInterfaceAttribute.cs
===================================================================
---
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComEventInterfaceAttribute.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComEventInterfaceAttribute.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -34,6 +34,9 @@
namespace System.Runtime.InteropServices {
[AttributeUsage (AttributeTargets.Interface, Inherited=false)]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public sealed class ComEventInterfaceAttribute : Attribute
{
Type si, ep;
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComImportAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/ComImportAttribute.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/ComImportAttribute.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -35,6 +35,9 @@
[AttributeUsage (AttributeTargets.Class |
AttributeTargets.Interface, Inherited=false)]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public sealed class ComImportAttribute : Attribute
{
public ComImportAttribute ()
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComInterfaceType.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/ComInterfaceType.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/ComInterfaceType.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -31,7 +31,11 @@
namespace System.Runtime.InteropServices
{
- [Serializable] public enum ComInterfaceType
+ [Serializable]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
+ public enum ComInterfaceType
{
InterfaceIsDual = 0,
InterfaceIsIUnknown = 1,
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/ComMemberType.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/ComMemberType.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/ComMemberType.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -33,6 +33,9 @@
namespace System.Runtime.InteropServices
{
[Serializable]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public enum ComMemberType {
Method = 0,
PropGet = 1,
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComRegisterFunctionAttribute.cs
===================================================================
---
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComRegisterFunctionAttribute.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComRegisterFunctionAttribute.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -32,6 +32,9 @@
namespace System.Runtime.InteropServices {
[AttributeUsage (AttributeTargets.Method, Inherited=false)]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public sealed class ComRegisterFunctionAttribute : Attribute
{
public ComRegisterFunctionAttribute ()
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComUnregisterFunctionAttribute.cs
===================================================================
---
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComUnregisterFunctionAttribute.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComUnregisterFunctionAttribute.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -34,6 +34,9 @@
namespace System.Runtime.InteropServices {
[AttributeUsage (AttributeTargets.Method, Inherited=false)]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public sealed class ComUnregisterFunctionAttribute : Attribute
{
public ComUnregisterFunctionAttribute ()
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/ComVisible.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/ComVisible.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/ComVisible.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -39,6 +39,9 @@
AttributeTargets.Method | AttributeTargets.Property |
AttributeTargets.Field | AttributeTargets.Interface |
AttributeTargets.Delegate, Inherited=false)]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public sealed class ComVisibleAttribute : Attribute
{
private bool Visible = false;
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/CriticalHandle.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/CriticalHandle.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/CriticalHandle.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -18,6 +18,7 @@
protected IntPtr handle;
bool _disposed = false;
+ [ReliabilityContract (Consistency.WillNotCorruptState,
Cer.MayFail)]
protected CriticalHandle (IntPtr invalidHandleValue)
{
handle = invalidHandleValue;
@@ -41,6 +42,7 @@
Dispose (true);
}
+ [ReliabilityContract (Consistency.WillNotCorruptState,
Cer.Success)]
public void Dispose (bool disposing)
{
if (_disposed)
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/CurrencyWrapper.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/CurrencyWrapper.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/CurrencyWrapper.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -32,6 +32,10 @@
namespace System.Runtime.InteropServices
{
+#if NET_2_0
+ [Serializable]
+ [ComVisible (true)]
+#endif
public sealed class CurrencyWrapper
{
Decimal currency;
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/DESCKIND.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/DESCKIND.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/DESCKIND.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -34,9 +34,10 @@
{
#if NET_2_0
[Obsolete]
+#else
+ [ComVisible(false)]
#endif
[Serializable]
- [ComVisible(false)]
public enum DESCKIND {
DESCKIND_NONE = 0,
DESCKIND_FUNCDESC = 1,
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/DISPPARAMS.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/DISPPARAMS.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/DISPPARAMS.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -34,8 +34,9 @@
{
#if NET_2_0
[Obsolete]
+#else
+ [ComVisible(false)]
#endif
- [ComVisible(false)]
[StructLayout (LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct DISPPARAMS {
public IntPtr rgvarg;
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/DefaultCharSetAttribute.cs
===================================================================
---
trunk/mcs/class/corlib/System.Runtime.InteropServices/DefaultCharSetAttribute.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++
trunk/mcs/class/corlib/System.Runtime.InteropServices/DefaultCharSetAttribute.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -13,7 +13,8 @@
namespace System.Runtime.InteropServices
{
[AttributeUsage (AttributeTargets.Module, Inherited = false)]
- public class DefaultCharSetAttribute : Attribute
+ [ComVisible (true)]
+ public sealed class DefaultCharSetAttribute : Attribute
{
CharSet _set;
@@ -25,4 +26,4 @@
public CharSet CharSet { get { return _set; } }
}
}
-#endif
\ No newline at end of file
+#endif
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/DispIdAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/DispIdAttribute.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/DispIdAttribute.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -33,6 +33,9 @@
[AttributeUsage (AttributeTargets.Method | AttributeTargets.Property |
AttributeTargets.Field | AttributeTargets.Event,
Inherited=false)]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public sealed class DispIdAttribute : Attribute
{
int id;
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/DispatchWrapper.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/DispatchWrapper.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/DispatchWrapper.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -32,6 +32,10 @@
namespace System.Runtime.InteropServices
{
+#if NET_2_0
+ [Serializable]
+ [ComVisible (true)]
+#endif
public sealed class DispatchWrapper
{
object wrappedObject;
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/ELEMDESC.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/ELEMDESC.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/ELEMDESC.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -32,8 +32,9 @@
{
#if NET_2_0
[Obsolete]
+#else
+ [ComVisible (false)]
#endif
- [ComVisible (false)]
[StructLayout (LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct ELEMDESC
{
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/EXCEPINFO.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/EXCEPINFO.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/EXCEPINFO.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -34,8 +34,9 @@
{
#if NET_2_0
[Obsolete]
+#else
+ [ComVisible(false)]
#endif
- [ComVisible(false)]
[StructLayout (LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct EXCEPINFO {
public short wCode;
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/ErrorWrapper.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/ErrorWrapper.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/ErrorWrapper.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -32,6 +32,10 @@
namespace System.Runtime.InteropServices
{
+#if NET_2_0
+ [Serializable]
+ [ComVisible (true)]
+#endif
public sealed class ErrorWrapper
{
int errorCode;
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/ExporterEventKind.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/ExporterEventKind.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/ExporterEventKind.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -32,7 +32,11 @@
namespace System.Runtime.InteropServices
{
- [Serializable] public enum ExporterEventKind
+ [Serializable]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
+ public enum ExporterEventKind
{
NOTIF_TYPECONVERTED = 0,
NOTIF_CONVERTWARNING = 1,
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/ExtensibleClassFactory.cs
===================================================================
---
trunk/mcs/class/corlib/System.Runtime.InteropServices/ExtensibleClassFactory.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++
trunk/mcs/class/corlib/System.Runtime.InteropServices/ExtensibleClassFactory.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -36,6 +36,9 @@
namespace System.Runtime.InteropServices
{
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public sealed class ExtensibleClassFactory
{
static Hashtable hashtable;
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/ExternalException.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/ExternalException.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/ExternalException.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -35,6 +35,9 @@
namespace System.Runtime.InteropServices {
[Serializable]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public class ExternalException : SystemException {
// Constructors
public ExternalException ()
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -196,6 +196,12 @@
{
copy_from_unmanaged (source, startIndex, destination,
length);
}
+
+ public static IntPtr CreateAggregatedObject (IntPtr pOuter,
+ object o)
+ {
+ throw new NotImplementedException ();
+ }
#endif
public static object CreateWrapperOfType (object o, Type t)
@@ -216,6 +222,9 @@
}
[MethodImplAttribute(MethodImplOptions.InternalCall)]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public extern static void DestroyStructure (IntPtr ptr, Type
structuretype);
[MethodImplAttribute(MethodImplOptions.InternalCall)]
@@ -360,6 +369,9 @@
}
[MonoTODO]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public static IntPtr GetExceptionPointers()
{
throw new NotImplementedException ();
@@ -378,6 +390,9 @@
}
[MonoTODO]
+#if NET_2_0
+ [ReliabilityContract (Consistency.WillNotCorruptState,
Cer.Success)]
+#endif
public static int GetHRForLastWin32Error()
{
throw new NotImplementedException ();
@@ -434,6 +449,9 @@
public static extern int GetLastWin32Error();
[MonoTODO]
+#if NET_2_0
+ [Obsolete ("This method has been deprecated")]
+#endif
public static IntPtr GetManagedThunkForUnmanagedMethodPtr
(IntPtr pfnMethodToWrap, IntPtr pbSignature, int cbSignature)
{
throw new NotImplementedException ();
@@ -490,6 +508,9 @@
}
[MonoTODO]
+#if NET_2_0
+ [Obsolete ("This method has been deprecated")]
+#endif
public static Thread GetThreadFromFiberCookie (int cookie)
{
throw new NotImplementedException ();
@@ -524,6 +545,13 @@
}
#if NET_2_0
+ public static string GetTypeInfoName (ITypeInfo typeInfo)
+ {
+ throw new NotImplementedException ();
+ }
+#endif
+
+#if NET_2_0
[Obsolete]
#endif
[MonoTODO]
@@ -584,9 +612,17 @@
{
throw new NotImplementedException ();
}
+
+ public static object GetUniqueObjectForIUnknown (IntPtr unknown)
+ {
+ throw new NotImplementedException ();
+ }
#endif
[MonoTODO]
+#if NET_2_0
+ [Obsolete ("This method has been deprecated")]
+#endif
public static IntPtr GetUnmanagedThunkForManagedMethodPtr
(IntPtr pfnMethodToWrap, IntPtr pbSignature, int cbSignature)
{
throw new NotImplementedException ();
@@ -644,9 +680,15 @@
public extern static string PtrToStringBSTR (IntPtr ptr);
[MethodImplAttribute(MethodImplOptions.InternalCall)]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public extern static void PtrToStructure (IntPtr ptr, object
structure);
[MethodImplAttribute(MethodImplOptions.InternalCall)]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public extern static object PtrToStructure (IntPtr ptr, Type
structureType);
[MethodImplAttribute (MethodImplOptions.InternalCall)]
@@ -768,6 +810,9 @@
[MethodImplAttribute (MethodImplOptions.InternalCall)]
private extern static int ReleaseInternal (IntPtr pUnk);
+#if NET_2_0
+ [ReliabilityContract (Consistency.WillNotCorruptState,
Cer.Success)]
+#endif
public static int Release (IntPtr pUnk)
{
if (pUnk == IntPtr.Zero)
@@ -802,6 +847,9 @@
throw new NotSupportedException ("MSDN states user code
should never need to call this method.");
}
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public static int SizeOf (object structure)
{
return SizeOf (structure.GetType ());
@@ -955,6 +1003,7 @@
#if NET_2_0
[ReliabilityContractAttribute (Consistency.WillNotCorruptState,
Cer.MayFail)]
+ [ComVisible (true)]
#endif
[MethodImplAttribute(MethodImplOptions.InternalCall)]
public extern static void StructureToPtr (object structure,
IntPtr ptr, bool fDeleteOld);
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/PARAMDESC.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/PARAMDESC.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/PARAMDESC.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -32,8 +32,9 @@
{
#if NET_2_0
[Obsolete]
+#else
+ [ComVisible (false)]
#endif
- [ComVisible (false)]
[StructLayout (LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct PARAMDESC
{
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/PARAMFLAG.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/PARAMFLAG.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/PARAMFLAG.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -34,8 +34,11 @@
{
#if NET_2_0
[Obsolete]
+#else
+ [ComVisible (false)]
#endif
- [Flags, Serializable, ComVisible (false)]
+ [Serializable]
+ [Flags]
public enum PARAMFLAG
{
PARAMFLAG_NONE = 0,
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/RegistrationClassContext.cs
===================================================================
---
trunk/mcs/class/corlib/System.Runtime.InteropServices/RegistrationClassContext.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++
trunk/mcs/class/corlib/System.Runtime.InteropServices/RegistrationClassContext.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -41,10 +41,10 @@
EnableActivateAsActivator = 65536,
EnableCodeDownload = 8192,
FromDefaultContext = 131072,
- InprocHandler = 2,
- InprocHandler16 = 32,
- InprocServer = 1,
- InprocServer16 = 8,
+ InProcessHandler = 2,
+ InProcessHandler16 = 32,
+ InProcessServer = 1,
+ InProcessServer16 = 8,
LocalServer = 4,
NoCodeDownload = 1024,
NoCustomMarshal = 4096,
@@ -54,7 +54,13 @@
Reserved2 = 128,
Reserved3 = 256,
Reserved4 = 512,
- Reserved5 = 2048
+ Reserved5 = 2048,
+
+ // No longer defined
+ InprocHandler = 2,
+ InprocHandler16 = 32,
+ InprocServer = 1,
+ InprocServer16 = 8,
}
}
#endif
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/SafeHandle.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/SafeHandle.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/SafeHandle.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -62,6 +62,7 @@
int refcount = 0;
bool owns_handle;
+ [ReliabilityContract (Consistency.WillNotCorruptState,
Cer.MayFail)]
protected SafeHandle (IntPtr invalidHandleValue, bool
ownsHandle)
{
invalid_handle_value = invalidHandleValue;
@@ -69,6 +70,7 @@
refcount = 1;
}
+ [ReliabilityContract (Consistency.WillNotCorruptState,
Cer.Success)]
public void Close ()
{
if (refcount == 0)
@@ -95,6 +97,7 @@
// try { x.DangerousAddRef (ref release); ... }
// finally { if (release) x.DangerousRelease (); }
//
+ [ReliabilityContract (Consistency.WillNotCorruptState,
Cer.MayFail)]
public void DangerousAddRef (ref bool success)
{
if (refcount == 0)
@@ -118,6 +121,7 @@
success = true;
}
+ [ReliabilityContract (Consistency.WillNotCorruptState,
Cer.Success)]
public IntPtr DangerousGetHandle ()
{
if (refcount == 0){
@@ -127,6 +131,7 @@
return handle;
}
+ [ReliabilityContract (Consistency.WillNotCorruptState,
Cer.Success)]
public void DangerousRelease ()
{
if (refcount == 0)
@@ -144,6 +149,7 @@
}
}
+ [ReliabilityContract (Consistency.WillNotCorruptState,
Cer.Success)]
public virtual void Dispose ()
{
Dispose (true);
@@ -154,11 +160,13 @@
// See documentation, this invalidates the handle without
// closing it.
//
+ [ReliabilityContract (Consistency.WillNotCorruptState,
Cer.Success)]
public void SetHandleAsInvalid ()
{
handle = invalid_handle_value;
}
+ [ReliabilityContract (Consistency.WillNotCorruptState,
Cer.Success)]
protected virtual void Dispose (bool disposing)
{
if (disposing)
@@ -173,20 +181,24 @@
}
}
+ [ReliabilityContract (Consistency.WillNotCorruptState,
Cer.Success)]
protected abstract bool ReleaseHandle ();
+ [ReliabilityContract (Consistency.WillNotCorruptState,
Cer.Success)]
protected void SetHandle (IntPtr handle)
{
this.handle = handle;
}
public bool IsClosed {
+ [ReliabilityContract (Consistency.WillNotCorruptState,
Cer.Success)]
get {
return refcount == 0;
}
}
public abstract bool IsInvalid {
+ [ReliabilityContract (Consistency.WillNotCorruptState,
Cer.Success)]
get;
}
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/StructLayoutAttribute.cs
===================================================================
---
trunk/mcs/class/corlib/System.Runtime.InteropServices/StructLayoutAttribute.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++
trunk/mcs/class/corlib/System.Runtime.InteropServices/StructLayoutAttribute.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -26,7 +26,7 @@
namespace System.Runtime.InteropServices {
#if NET_2_0
- [ComVisible (false)]
+ [ComVisible (true)]
#endif
[AttributeUsage (AttributeTargets.Class | AttributeTargets.Struct,
Inherited=false)]
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/TYPEKIND.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/TYPEKIND.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/TYPEKIND.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -34,9 +34,10 @@
{
#if NET_2_0
[Obsolete]
+#else
+ [ComVisible(false)]
#endif
[Serializable]
- [ComVisible(false)]
public enum TYPEKIND {
TKIND_ENUM = 0,
TKIND_RECORD = 1,
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/TYPELIBATTR.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/TYPELIBATTR.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/TYPELIBATTR.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -33,8 +33,9 @@
#if NET_2_0
[Obsolete]
[Serializable]
+#else
+ [ComVisible (false)]
#endif
- [ComVisible (false)]
[StructLayout (LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct TYPELIBATTR
{
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/TypeLibConverter.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/TypeLibConverter.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/TypeLibConverter.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -46,6 +46,9 @@
}
[MonoTODO ("implement")]
+#if NET_2_0
+ [return: MarshalAs (UnmanagedType.Interface)]
+#endif
public object ConvertAssemblyToTypeLib (Assembly assembly,
string strTypeLibName, TypeLibExporterFlags flags, ITypeLibExporterNotifySink
notifySink)
{
throw new NotImplementedException ();
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/TypeLibImporterFlags.cs
===================================================================
---
trunk/mcs/class/corlib/System.Runtime.InteropServices/TypeLibImporterFlags.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++
trunk/mcs/class/corlib/System.Runtime.InteropServices/TypeLibImporterFlags.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -45,6 +45,14 @@
#if NET_2_0
None = 0,
PreventClassMembers = 16,
+ ImportAsAgnostic = 2048,
+ ImportAsItanium = 1024,
+ ImportAsX64 = 512,
+ ImportAsX86 = 256,
+ ReflectionOnlyLoading = 4096,
+ SerializableValueClasses = 32,
+
+ // No longer defined
PlatformLegacy = 4096,
PlatformLibrary = 8192,
PlatformAppDomain = 16384,
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/UCOMIMoniker.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/UCOMIMoniker.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/UCOMIMoniker.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -47,7 +47,11 @@
void BindToObject (UCOMIBindCtx pbc, UCOMIMoniker pmkToLeft,
[In] ref Guid riidResult, [MarshalAs (UnmanagedType.Interface)] out object
ppvResult);
void BindToStorage (UCOMIBindCtx pbc, UCOMIMoniker pmkToLeft,
[In] ref Guid riid, [MarshalAs (UnmanagedType.Interface)] out object ppvObj);
void Reduce (UCOMIBindCtx pbc, int dwReduceHowFar, ref
UCOMIMoniker ppmkToLeft, out UCOMIMoniker ppmkReduced);
+#if NET_2_0
+ void ComposeWith (UCOMIMoniker pmkRight, [MarshalAs
(UnmanagedType.Bool)] bool fOnlyIfNotGeneric, out UCOMIMoniker ppmkComposite);
+#else
void ComposeWith (UCOMIMoniker pmkRight, [MarshalAs
(UnmanagedType.LPWStr)] bool fOnlyIfNotGeneric, out UCOMIMoniker ppmkComposite);
+#endif
void Enum ([MarshalAs(UnmanagedType.Bool)] bool fForward, out
UCOMIEnumMoniker ppenumMoniker);
void IsEqual (UCOMIMoniker pmkOtherMoniker);
void Hash (out int pdwHash);
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/UnmanagedType.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/UnmanagedType.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/UnmanagedType.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -37,6 +37,7 @@
#if NET_2_0
[ComVisible(true)]
+ [Serializable]
#endif
public enum UnmanagedType {
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/VARDESC.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/VARDESC.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/VARDESC.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -32,8 +32,9 @@
{
#if NET_2_0
[Obsolete]
+#else
+ [ComVisible (false)]
#endif
- [ComVisible (false)]
[StructLayout (LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct VARDESC
{
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/VARFLAGS.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/VARFLAGS.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/VARFLAGS.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -34,8 +34,11 @@
{
#if NET_2_0
[Obsolete]
+#else
+ [ComVisible (false)]
#endif
- [Serializable, ComVisible (false), Flags]
+ [Serializable]
+ [Flags]
public enum VARFLAGS
{
VARFLAG_FREADONLY = 1,
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/_ConstructorInfo.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/_ConstructorInfo.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/_ConstructorInfo.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -17,6 +17,9 @@
[InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
[Guid ("E9A19478-9646-3679-9B10-8411AE1FD57D")]
[TypeLibImportClass (typeof (ConstructorInfo))]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public interface _ConstructorInfo
{
bool Equals (object obj);
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/_EventInfo.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/_EventInfo.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/_EventInfo.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -16,6 +16,9 @@
[InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
[Guid ("9DE59C64-D889-35A1-B897-587D74469E5B")]
[TypeLibImportClass (typeof (EventInfo))]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public interface _EventInfo
{
void AddEventHandler (object target, Delegate handler);
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/_Exception.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/_Exception.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/_Exception.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -36,6 +36,7 @@
[InterfaceType (ComInterfaceType.InterfaceIsDual)]
[Guid ("b36b5c63-42ef-38bc-a07e-0b34c98f164a")]
[CLSCompliant (false)]
+ [ComVisible (true)]
public interface _Exception {
string HelpLink { get; set; }
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/_FieldInfo.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/_FieldInfo.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/_FieldInfo.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -17,6 +17,9 @@
[InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
[Guid ("8A7C1442-A9FB-366B-80D8-4939FFA6DBE0")]
[TypeLibImportClass (typeof (FieldInfo))]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public interface _FieldInfo
{
bool Equals (object obj);
@@ -40,7 +43,9 @@
object GetValue (object obj);
+#if !NET_2_0
[CLSCompliant (false)]
+#endif
object GetValueDirect (TypedReference obj);
bool IsDefined (Type attributeType, bool inherit);
@@ -49,7 +54,9 @@
void SetValue (object obj, object value, BindingFlags
invokeAttr, Binder binder, CultureInfo culture);
+#if !NET_2_0
[CLSCompliant (false)]
+#endif
void SetValueDirect (TypedReference obj, object value);
string ToString ();
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/_MemberInfo.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/_MemberInfo.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/_MemberInfo.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -16,6 +16,9 @@
[InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
[Guid ("f7102fa9-cabb-3a74-a6da-b4567ef1b079")]
[TypeLibImportClass (typeof (MemberInfo))]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public interface _MemberInfo
{
bool Equals (object obj);
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/_MethodBase.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/_MethodBase.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/_MethodBase.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -17,6 +17,9 @@
[InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
[Guid ("6240837A-707F-3181-8E98-A36AE086766B")]
[TypeLibImportClass (typeof (MethodBase))]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public interface _MethodBase
{
bool Equals (object obj);
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/_MethodInfo.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/_MethodInfo.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/_MethodInfo.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -17,6 +17,9 @@
[InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
[Guid ("FFCC1B5D-ECB8-38DD-9B01-3DC8ABC2AA5F")]
[TypeLibImportClass (typeof (MethodInfo))]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public interface _MethodInfo
{
bool Equals (object obj);
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/_PropertyInfo.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/_PropertyInfo.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/_PropertyInfo.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -17,6 +17,9 @@
[InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
[Guid ("F59ED4E4-E68F-3218-BD77-061AA82824BF")]
[TypeLibImportClass (typeof (PropertyInfo))]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public interface _PropertyInfo
{
bool Equals (object obj);
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/_Type.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/_Type.cs
2007-05-02 16:13:23 UTC (rev 76578)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/_Type.cs
2007-05-02 16:38:28 UTC (rev 76579)
@@ -17,6 +17,9 @@
[InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
[Guid ("BCA8B44D-AAD6-3A86-8AB7-03349F4F2DA2")]
[TypeLibImportClass (typeof (Type))]
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public interface _Type
{
bool Equals (object o);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches