Author: atsushi
Date: 2007-08-08 12:25:59 -0400 (Wed, 08 Aug 2007)
New Revision: 83679

Removed:
   
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComObjectInUseException.cs
   
trunk/mcs/class/corlib/System.Runtime.InteropServices/ExposeAsClassToComAttribute.cs
Modified:
   trunk/mcs/class/corlib/ChangeLog
   trunk/mcs/class/corlib/Mono.Globalization.Unicode/
   trunk/mcs/class/corlib/System.Collections.Generic/ChangeLog
   trunk/mcs/class/corlib/System.Collections.Generic/Dictionary.cs
   trunk/mcs/class/corlib/System.Collections.ObjectModel/ChangeLog
   trunk/mcs/class/corlib/System.Collections.ObjectModel/ReadOnlyCollection.cs
   trunk/mcs/class/corlib/System.Collections/ChangeLog
   trunk/mcs/class/corlib/System.Collections/CollectionBase.cs
   trunk/mcs/class/corlib/System.Collections/ReadOnlyCollectionBase.cs
   trunk/mcs/class/corlib/System.Configuration.Assemblies/AssemblyHash.cs
   trunk/mcs/class/corlib/System.Configuration.Assemblies/ChangeLog
   trunk/mcs/class/corlib/System.Diagnostics.SymbolStore/ChangeLog
   trunk/mcs/class/corlib/System.Diagnostics.SymbolStore/SymbolToken.cs
   trunk/mcs/class/corlib/System.Diagnostics/DebuggableAttribute.cs
   trunk/mcs/class/corlib/System.Runtime.InteropServices.ComTypes/ChangeLog
   trunk/mcs/class/corlib/System.Runtime.InteropServices.ComTypes/ELEMDESC.cs
   trunk/mcs/class/corlib/System.Runtime.InteropServices.ComTypes/IMoniker.cs
   
trunk/mcs/class/corlib/System.Runtime.InteropServices.ComTypes/IRunningObjectTable.cs
   trunk/mcs/class/corlib/System.Runtime.InteropServices.ComTypes/VARDESC.cs
   trunk/mcs/class/corlib/System.Runtime.InteropServices.Expando/Changelog
   trunk/mcs/class/corlib/System.Runtime.InteropServices.Expando/IExpando.cs
   trunk/mcs/class/corlib/System.Runtime.InteropServices/ArrayWithOffset.cs
   trunk/mcs/class/corlib/System.Runtime.InteropServices/ChangeLog
   trunk/mcs/class/corlib/System.Runtime.InteropServices/CriticalHandle.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/TypeLibImporterFlags.cs
   trunk/mcs/class/corlib/corlib.dll.sources
Log:
another set of cosmetic 2.0 API fixes.



Modified: trunk/mcs/class/corlib/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/ChangeLog    2007-08-08 16:17:56 UTC (rev 83678)
+++ trunk/mcs/class/corlib/ChangeLog    2007-08-08 16:25:59 UTC (rev 83679)
@@ -1,3 +1,8 @@
+2007-08-08  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * corlib.dll.sources : removed ComObjectInUseException.cs and
+         ExposeAsClassToComAttribute.cs.
+
 2007-07-20  Gert Driesen  <[EMAIL PROTECTED]>
 
        * corlib_test.dll.sources: added RuntimeMethodHandleTest.cs.


Property changes on: trunk/mcs/class/corlib/Mono.Globalization.Unicode
___________________________________________________________________
Name: svn:ignore
   - dtd
create-collation-element-table.exe
create-collation-element-table.exe.mdb
collation-tables.h
normalization-tables.h
create-normalization-source.exe
create-normalization-source.exe.mdb
create-mscompat-collation-table.exe
create-mscompat-collation-table.exe.mdb
MSCompatUnicodeTableGenerated.cs
NormalizationGenerated.cs
CollationElementTable.cs
create-tailorings.exe
StringNormalizationTest.exe.mdb
TestDriver.exe
StringNormalizationTest.exe
UCD
TestDriver.exe.mdb
downloaded/NormalizationTest-3.1.0.txt
downloaded/NormalizationTest.txt
*.mdb

   + dtd
core.zip
create-collation-element-table.exe
create-collation-element-table.exe.mdb
collation-tables.h
normalization-tables.h
create-normalization-source.exe
create-normalization-source.exe.mdb
create-mscompat-collation-table.exe
create-mscompat-collation-table.exe.mdb
MSCompatUnicodeTableGenerated.cs
NormalizationGenerated.cs
CollationElementTable.cs
create-tailorings.exe
StringNormalizationTest.exe.mdb
TestDriver.exe
StringNormalizationTest.exe
UCD
TestDriver.exe.mdb
downloaded/NormalizationTest-3.1.0.txt
downloaded/NormalizationTest.txt
*.mdb


Modified: trunk/mcs/class/corlib/System.Collections/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Collections/ChangeLog 2007-08-08 16:17:56 UTC 
(rev 83678)
+++ trunk/mcs/class/corlib/System.Collections/ChangeLog 2007-08-08 16:25:59 UTC 
(rev 83679)
@@ -1,3 +1,8 @@
+2007-08-08  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * ReadOnlyCollectionBase.cs CollectionBase.cs :
+         cosmetic 2.0 API fixes.
+
 2007-07-19  Juraj Skripsky  <[EMAIL PROTECTED]>
 
        * ArrayList.cs (ArrayList.Adapter): If the given list already is an

Modified: trunk/mcs/class/corlib/System.Collections/CollectionBase.cs
===================================================================
--- trunk/mcs/class/corlib/System.Collections/CollectionBase.cs 2007-08-08 
16:17:56 UTC (rev 83678)
+++ trunk/mcs/class/corlib/System.Collections/CollectionBase.cs 2007-08-08 
16:25:59 UTC (rev 83679)
@@ -74,6 +74,7 @@
                        list = new ArrayList (capacity);
                }
 
+               [ComVisible (false)]
                public int Capacity {
                        get {
                                if (list == null)

Modified: trunk/mcs/class/corlib/System.Collections/ReadOnlyCollectionBase.cs
===================================================================
--- trunk/mcs/class/corlib/System.Collections/ReadOnlyCollectionBase.cs 
2007-08-08 16:17:56 UTC (rev 83678)
+++ trunk/mcs/class/corlib/System.Collections/ReadOnlyCollectionBase.cs 
2007-08-08 16:25:59 UTC (rev 83679)
@@ -52,7 +52,11 @@
                int Count { get { return InnerList.Count; } }
                
                // Public Instance Methods
-               public IEnumerator GetEnumerator() { return 
InnerList.GetEnumerator(); }
+               public
+#if NET_2_0
+               virtual
+#endif         
+               IEnumerator GetEnumerator() { return InnerList.GetEnumerator(); 
}
                
                // Protected Instance Constructors
                protected ReadOnlyCollectionBase() {
@@ -62,7 +66,11 @@
                // Protected Instance Properties
                protected ArrayList InnerList {get { return this.list; } }
                
-               // ICollection methods
+#if NET_2_0
+               // ICollection/IEnumerable methods
+               IEnumerator IEnumerable.GetEnumerator() { return 
GetEnumerator(); }
+#endif
+
                void ICollection.CopyTo(Array array, int index) {
                        lock (InnerList) { InnerList.CopyTo(array, index); }
                }

Modified: trunk/mcs/class/corlib/System.Collections.Generic/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Collections.Generic/ChangeLog 2007-08-08 
16:17:56 UTC (rev 83678)
+++ trunk/mcs/class/corlib/System.Collections.Generic/ChangeLog 2007-08-08 
16:25:59 UTC (rev 83679)
@@ -1,3 +1,7 @@
+2007-08-08  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * Dictionary.cs : [Comvisible(true)]->[ComVisible(false)].
+
 2007-06-23  Marek Safar <[EMAIL PROTECTED]>
 
        * List.cs: Make CheckMatch static.

Modified: trunk/mcs/class/corlib/System.Collections.Generic/Dictionary.cs
===================================================================
--- trunk/mcs/class/corlib/System.Collections.Generic/Dictionary.cs     
2007-08-08 16:17:56 UTC (rev 83678)
+++ trunk/mcs/class/corlib/System.Collections.Generic/Dictionary.cs     
2007-08-08 16:25:59 UTC (rev 83679)
@@ -43,7 +43,7 @@
 using System.Runtime.InteropServices;
 
 namespace System.Collections.Generic {
-       [ComVisible(true)]
+       [ComVisible(false)]
        [Serializable]
        public class Dictionary<TKey, TValue> : IDictionary<TKey, TValue>,
                IDictionary,

Modified: trunk/mcs/class/corlib/System.Collections.ObjectModel/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Collections.ObjectModel/ChangeLog     
2007-08-08 16:17:56 UTC (rev 83678)
+++ trunk/mcs/class/corlib/System.Collections.ObjectModel/ChangeLog     
2007-08-08 16:25:59 UTC (rev 83679)
@@ -1,3 +1,7 @@
+2006-08-08  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * ReadOnlyCollection.cs : added get_IList<T>.this(int).
+
 2006-03-28  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * Collection.cs : Count and Item are not virtual.

Modified: 
trunk/mcs/class/corlib/System.Collections.ObjectModel/ReadOnlyCollection.cs
===================================================================
--- trunk/mcs/class/corlib/System.Collections.ObjectModel/ReadOnlyCollection.cs 
2007-08-08 16:17:56 UTC (rev 83678)
+++ trunk/mcs/class/corlib/System.Collections.ObjectModel/ReadOnlyCollection.cs 
2007-08-08 16:25:59 UTC (rev 83679)
@@ -115,6 +115,7 @@
                }
 
                T IList<T>.this [int index] {
+                       get { return this [index]; }
                        set { throw new NotSupportedException (); }
                }
 

Modified: trunk/mcs/class/corlib/System.Configuration.Assemblies/AssemblyHash.cs
===================================================================
--- trunk/mcs/class/corlib/System.Configuration.Assemblies/AssemblyHash.cs      
2007-08-08 16:17:56 UTC (rev 83678)
+++ trunk/mcs/class/corlib/System.Configuration.Assemblies/AssemblyHash.cs      
2007-08-08 16:25:59 UTC (rev 83679)
@@ -41,6 +41,9 @@
                private AssemblyHashAlgorithm _algorithm;
                private byte[] _value;
 
+#if NET_2_0
+               [Obsolete]
+#endif
                public static readonly AssemblyHash Empty = new AssemblyHash 
(AssemblyHashAlgorithm.None, null);
 
 #if NET_2_0

Modified: trunk/mcs/class/corlib/System.Configuration.Assemblies/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Configuration.Assemblies/ChangeLog    
2007-08-08 16:17:56 UTC (rev 83678)
+++ trunk/mcs/class/corlib/System.Configuration.Assemblies/ChangeLog    
2007-08-08 16:25:59 UTC (rev 83679)
@@ -1,3 +1,7 @@
+2007-08-08  Atsushi Enomoto   <[EMAIL PROTECTED]>
+
+       * AssemblyHash.cs : added 2.0 operator overloads.
+
 2006-10-31  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * AssemblyHashAlgorithm.cs: Added [Serializable] and    

Modified: trunk/mcs/class/corlib/System.Diagnostics/DebuggableAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Diagnostics/DebuggableAttribute.cs    
2007-08-08 16:17:56 UTC (rev 83678)
+++ trunk/mcs/class/corlib/System.Diagnostics/DebuggableAttribute.cs    
2007-08-08 16:25:59 UTC (rev 83679)
@@ -47,6 +47,7 @@
                private bool JITOptimizerDisabledFlag;
 #if NET_2_0
                [Flags]
+               [ComVisible (true)]
                public enum DebuggingModes {
                        // Fields
                        None = 0,

Modified: trunk/mcs/class/corlib/System.Diagnostics.SymbolStore/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Diagnostics.SymbolStore/ChangeLog     
2007-08-08 16:17:56 UTC (rev 83678)
+++ trunk/mcs/class/corlib/System.Diagnostics.SymbolStore/ChangeLog     
2007-08-08 16:25:59 UTC (rev 83679)
@@ -1,3 +1,7 @@
+2007-08-08  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * SymbolToken.cs : added 2.0 operator overloads.
+
 2007-05-16  Dick Porter  <[EMAIL PROTECTED]>
 
        * ISymbolBinder.cs: 

Modified: trunk/mcs/class/corlib/System.Diagnostics.SymbolStore/SymbolToken.cs
===================================================================
--- trunk/mcs/class/corlib/System.Diagnostics.SymbolStore/SymbolToken.cs        
2007-08-08 16:17:56 UTC (rev 83678)
+++ trunk/mcs/class/corlib/System.Diagnostics.SymbolStore/SymbolToken.cs        
2007-08-08 16:25:59 UTC (rev 83679)
@@ -64,6 +64,16 @@
                        return(obj.GetToken () == _val);
                }
                
+
+               public static bool operator == (SymbolToken obj1, SymbolToken 
obj2)
+               {
+                       return obj1.Equals (obj2);
+               }
+
+               public static bool operator != (SymbolToken obj1, SymbolToken 
obj2)
+               {
+                       return !obj1.Equals (obj2);
+               }
 #endif
 
                public override int GetHashCode()

Modified: 
trunk/mcs/class/corlib/System.Runtime.InteropServices/ArrayWithOffset.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/ArrayWithOffset.cs    
2007-08-08 16:17:56 UTC (rev 83678)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/ArrayWithOffset.cs    
2007-08-08 16:25:59 UTC (rev 83679)
@@ -63,6 +63,18 @@
                        return obj.array == array && obj.offset == offset;
                }
 
+#if NET_2_0
+               public static bool operator == (ArrayWithOffset obj1, 
ArrayWithOffset obj2)
+               {
+                       return obj1.Equals (obj2);
+               }
+
+               public static bool operator != (ArrayWithOffset obj1, 
ArrayWithOffset obj2)
+               {
+                       return !obj1.Equals (obj2);
+               }
+#endif
+
                public override int GetHashCode ()
                {
                        return offset;

Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/ChangeLog     
2007-08-08 16:17:56 UTC (rev 83678)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/ChangeLog     
2007-08-08 16:25:59 UTC (rev 83679)
@@ -1,3 +1,10 @@
+2007-08-08  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * SafeHandle.cs CriticalHandle.cs TypeLibImporterFlags.cs
+         RegistrationClassContext.cs ArrayWithOffset.cs :
+       * ComObjectInUseException.cs ExposeAsClassToComAttribute.cs :
+         removed obsoleted files.
+
 2007-07-18  Miguel de Icaza  <[EMAIL PROTECTED]>
 
        * SafeHandle.cs: Harden this, do not call ReleaseHandle if the

Deleted: 
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComObjectInUseException.cs
===================================================================
--- 
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComObjectInUseException.cs
    2007-08-08 16:17:56 UTC (rev 83678)
+++ 
trunk/mcs/class/corlib/System.Runtime.InteropServices/ComObjectInUseException.cs
    2007-08-08 16:25:59 UTC (rev 83679)
@@ -1,40 +0,0 @@
-//
-// System.Runtime.InteropServices.ComObjectInUseException
-//
-// Author:
-//   Kazuki Oikawa  ([EMAIL PROTECTED])
-//
-
-#if NET_2_0
-
-using System;
-using System.Runtime.Serialization;
-
-namespace System.Runtime.InteropServices
-{
-       [Serializable]
-       public class ComObjectInUseException : SystemException
-       {
-               private const int ErrorCode = -2146233046;
-
-               public ComObjectInUseException () : base ()
-               {
-                       HResult = ErrorCode;
-               }
-
-               public ComObjectInUseException (string message) : base (message)
-               {
-                       HResult = ErrorCode;
-               }
-
-               protected ComObjectInUseException (SerializationInfo info, 
StreamingContext context) : base (info, context)
-               {
-               }
-
-               public ComObjectInUseException (string message, Exception 
inner) : base (message, inner)
-               {
-                       HResult = ErrorCode;
-               }
-       }
-}
-#endif
\ No newline at end of file

Modified: 
trunk/mcs/class/corlib/System.Runtime.InteropServices/CriticalHandle.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/CriticalHandle.cs     
2007-08-08 16:17:56 UTC (rev 83678)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/CriticalHandle.cs     
2007-08-08 16:25:59 UTC (rev 83679)
@@ -43,7 +43,7 @@
                }
 
                [ReliabilityContract (Consistency.WillNotCorruptState, 
Cer.Success)]
-               public void Dispose (bool disposing)
+               protected virtual void Dispose (bool disposing)
                {
                        if (_disposed)
                                return;

Deleted: 
trunk/mcs/class/corlib/System.Runtime.InteropServices/ExposeAsClassToComAttribute.cs
===================================================================
--- 
trunk/mcs/class/corlib/System.Runtime.InteropServices/ExposeAsClassToComAttribute.cs
        2007-08-08 16:17:56 UTC (rev 83678)
+++ 
trunk/mcs/class/corlib/System.Runtime.InteropServices/ExposeAsClassToComAttribute.cs
        2007-08-08 16:25:59 UTC (rev 83679)
@@ -1,22 +0,0 @@
-//
-// System.Runtime.InteropServices.ExposeAsClassToComAttribute
-//
-// Author:
-//   Kazuki Oikawa  ([EMAIL PROTECTED])
-//
-
-#if NET_2_0
-
-using System;
-
-namespace System.Runtime.InteropServices
-{
-       [AttributeUsage (AttributeTargets.Struct, Inherited = false)]
-       public class ExposeAsClassToComAttribute : Attribute
-       {
-               public ExposeAsClassToComAttribute ()
-               {
-               }
-       }
-}
-#endif
\ No newline at end of file

Modified: 
trunk/mcs/class/corlib/System.Runtime.InteropServices/RegistrationClassContext.cs
===================================================================
--- 
trunk/mcs/class/corlib/System.Runtime.InteropServices/RegistrationClassContext.cs
   2007-08-08 16:17:56 UTC (rev 83678)
+++ 
trunk/mcs/class/corlib/System.Runtime.InteropServices/RegistrationClassContext.cs
   2007-08-08 16:25:59 UTC (rev 83679)
@@ -55,12 +55,6 @@
                Reserved3 = 256,
                Reserved4 = 512,
                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-08-08 16:17:56 UTC (rev 83678)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/SafeHandle.cs 
2007-08-08 16:25:59 UTC (rev 83679)
@@ -150,7 +150,7 @@
                }
 
                [ReliabilityContract (Consistency.WillNotCorruptState, 
Cer.Success)]
-               public virtual void Dispose ()
+               public void Dispose ()
                {
                        Dispose (true);
                        GC.SuppressFinalize (this);

Modified: 
trunk/mcs/class/corlib/System.Runtime.InteropServices/TypeLibImporterFlags.cs
===================================================================
--- 
trunk/mcs/class/corlib/System.Runtime.InteropServices/TypeLibImporterFlags.cs   
    2007-08-08 16:17:56 UTC (rev 83678)
+++ 
trunk/mcs/class/corlib/System.Runtime.InteropServices/TypeLibImporterFlags.cs   
    2007-08-08 16:25:59 UTC (rev 83679)
@@ -51,12 +51,6 @@
                ImportAsX86 = 256,
                ReflectionOnlyLoading = 4096,
                SerializableValueClasses = 32,
-
-               // No longer defined
-               PlatformLegacy = 4096,
-               PlatformLibrary = 8192,
-               PlatformAppDomain = 16384,
-               PlatformProcess = 32768
 #endif
        }
 }

Modified: 
trunk/mcs/class/corlib/System.Runtime.InteropServices.ComTypes/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices.ComTypes/ChangeLog    
2007-08-08 16:17:56 UTC (rev 83678)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices.ComTypes/ChangeLog    
2007-08-08 16:25:59 UTC (rev 83679)
@@ -1,3 +1,8 @@
+2007-08-08  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * IMoniker.cs ELEMDESC.cs VARDESC.cs IRunningObjectTable.cs :
+         cosmetic 2.0 API fixes.
+
 2005-09-21  Kornél Pál  <[EMAIL PROTECTED]>
 
        * IEnumConnections.cs, IEnumMoniker.cs, IEnumString.cs, IStream.cs,

Modified: 
trunk/mcs/class/corlib/System.Runtime.InteropServices.ComTypes/ELEMDESC.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices.ComTypes/ELEMDESC.cs  
2007-08-08 16:17:56 UTC (rev 83678)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices.ComTypes/ELEMDESC.cs  
2007-08-08 16:25:59 UTC (rev 83679)
@@ -37,7 +37,6 @@
                public TYPEDESC tdesc;
                public DESCUNION desc;
 
-               [ComVisible (false)]
                [StructLayout (LayoutKind.Explicit, CharSet = CharSet.Unicode)]
                public struct DESCUNION
                {

Modified: 
trunk/mcs/class/corlib/System.Runtime.InteropServices.ComTypes/IMoniker.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices.ComTypes/IMoniker.cs  
2007-08-08 16:17:56 UTC (rev 83678)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices.ComTypes/IMoniker.cs  
2007-08-08 16:25:59 UTC (rev 83679)
@@ -47,7 +47,7 @@
                void BindToObject (IBindCtx pbc, IMoniker pmkToLeft, [In] ref 
Guid riidResult, [MarshalAs (UnmanagedType.Interface)] out object ppvResult);
                void BindToStorage (IBindCtx pbc, IMoniker pmkToLeft, [In] ref 
Guid riid, [MarshalAs (UnmanagedType.Interface)] out object ppvObj);
                void Reduce (IBindCtx pbc, int dwReduceHowFar, ref IMoniker 
ppmkToLeft, out IMoniker ppmkReduced);
-               void ComposeWith (IMoniker pmkRight, [MarshalAs 
(UnmanagedType.LPWStr)] bool fOnlyIfNotGeneric, out IMoniker ppmkComposite);
+               void ComposeWith (IMoniker pmkRight, [MarshalAs 
(UnmanagedType.Bool)] bool fOnlyIfNotGeneric, out IMoniker ppmkComposite);
                void Enum ([MarshalAs(UnmanagedType.Bool)] bool fForward, out 
IEnumMoniker ppenumMoniker);
                [PreserveSig]
                int IsEqual (IMoniker pmkOtherMoniker);

Modified: 
trunk/mcs/class/corlib/System.Runtime.InteropServices.ComTypes/IRunningObjectTable.cs
===================================================================
--- 
trunk/mcs/class/corlib/System.Runtime.InteropServices.ComTypes/IRunningObjectTable.cs
       2007-08-08 16:17:56 UTC (rev 83678)
+++ 
trunk/mcs/class/corlib/System.Runtime.InteropServices.ComTypes/IRunningObjectTable.cs
       2007-08-08 16:25:59 UTC (rev 83679)
@@ -38,7 +38,7 @@
        [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
        public interface IRunningObjectTable
        {
-               void Register (int grfFlags, [MarshalAs 
(UnmanagedType.Interface)] object punkObject, IMoniker pmkObjectName);
+               int Register (int grfFlags, [MarshalAs 
(UnmanagedType.Interface)] object punkObject, IMoniker pmkObjectName);
                void Revoke (int dwRegister);
                [PreserveSig]
                int IsRunning (IMoniker pmkObjectName);

Modified: 
trunk/mcs/class/corlib/System.Runtime.InteropServices.ComTypes/VARDESC.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices.ComTypes/VARDESC.cs   
2007-08-08 16:17:56 UTC (rev 83678)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices.ComTypes/VARDESC.cs   
2007-08-08 16:25:59 UTC (rev 83679)
@@ -41,7 +41,6 @@
                public short wVarFlags;
                public VARKIND varkind;
 
-               [ComVisible (false)]
                [StructLayout (LayoutKind.Explicit, CharSet = CharSet.Unicode)]
                public struct DESCUNION
                {

Modified: 
trunk/mcs/class/corlib/System.Runtime.InteropServices.Expando/Changelog
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices.Expando/Changelog     
2007-08-08 16:17:56 UTC (rev 83678)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices.Expando/Changelog     
2007-08-08 16:25:59 UTC (rev 83679)
@@ -1,3 +1,7 @@
+2007-08-08  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * IExpando.cs : [ComVisible]
+
 2003-11-13  Andreas Nahr <[EMAIL PROTECTED]>
 
        * IExpando.cs: Added attribute

Modified: 
trunk/mcs/class/corlib/System.Runtime.InteropServices.Expando/IExpando.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices.Expando/IExpando.cs   
2007-08-08 16:17:56 UTC (rev 83678)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices.Expando/IExpando.cs   
2007-08-08 16:25:59 UTC (rev 83679)
@@ -36,6 +36,9 @@
 namespace System.Runtime.InteropServices.Expando
 {
        [Guid("afbf15e6-c37c-11d2-b88e-00a0c9b471b8")]
+#if NET_2_0
+       [System.Runtime.InteropServices.ComVisible (true)]
+#endif
        public interface IExpando : IReflect
        {
                FieldInfo AddField (string name);

Modified: trunk/mcs/class/corlib/corlib.dll.sources
===================================================================
--- trunk/mcs/class/corlib/corlib.dll.sources   2007-08-08 16:17:56 UTC (rev 
83678)
+++ trunk/mcs/class/corlib/corlib.dll.sources   2007-08-08 16:25:59 UTC (rev 
83679)
@@ -649,7 +649,6 @@
 System.Runtime.InteropServices/ComImportAttribute.cs
 System.Runtime.InteropServices/ComInterfaceType.cs
 System.Runtime.InteropServices/ComMemberType.cs
-System.Runtime.InteropServices/ComObjectInUseException.cs
 System.Runtime.InteropServices/ComRegisterFunctionAttribute.cs
 System.Runtime.InteropServices/ComSourceInterfacesAttribute.cs
 System.Runtime.InteropServices/ComUnregisterFunctionAttribute.cs
@@ -667,7 +666,6 @@
 System.Runtime.InteropServices/ErrorWrapper.cs
 System.Runtime.InteropServices/EXCEPINFO.cs
 System.Runtime.InteropServices/ExporterEventKind.cs
-System.Runtime.InteropServices/ExposeAsClassToComAttribute.cs
 System.Runtime.InteropServices/ExtensibleClassFactory.cs
 System.Runtime.InteropServices/ExternalException.cs
 System.Runtime.InteropServices/FieldOffsetAttribute.cs

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to