2007-05-03 Dick Porter <dick@ximian.com>
authorDick Porter <dick@acm.org>
Thu, 3 May 2007 16:21:18 +0000 (16:21 -0000)
committerDick Porter <dick@acm.org>
Thu, 3 May 2007 16:21:18 +0000 (16:21 -0000)
* ProxyAttribute.cs:
* RealProxy.cs: Update to 2.0 profile

2007-05-03  Dick Porter  <dick@ximian.com>

* ITrackingHandler.cs:
* EnterpriseServicesHelper.cs:
* TrackingServices.cs: Update to 2.0 profile

2007-05-03  Dick Porter  <dick@ximian.com>

* IFieldInfo.cs:
* ISoapMessage.cs:
* InternalRM.cs:
* InternalST.cs:
* ServerFault.cs:
* SoapFault.cs:
* SoapMessage.cs:
* FormatterAssemblyStyle.cs:
* FormatterTypeStyle.cs:
* TypeFilterLevel.cs: Update to 2.0 profile

2007-05-03  Dick Porter  <dick@ximian.com>

* BinaryFormatter.cs: Update to 2.0 profile

2007-05-03  Dick Porter  <dick@ximian.com>

* Encoding.cs:
* UnicodeEncoding.cs:
* UTF7Encoding.cs: Update to 2.0 profile

svn path=/trunk/mcs/; revision=76625

24 files changed:
mcs/class/corlib/System.Runtime.Remoting.Proxies/ChangeLog
mcs/class/corlib/System.Runtime.Remoting.Proxies/ProxyAttribute.cs
mcs/class/corlib/System.Runtime.Remoting.Proxies/RealProxy.cs
mcs/class/corlib/System.Runtime.Remoting.Services/ChangeLog
mcs/class/corlib/System.Runtime.Remoting.Services/EnterpriseServicesHelper.cs
mcs/class/corlib/System.Runtime.Remoting.Services/ITrackingHandler.cs
mcs/class/corlib/System.Runtime.Remoting.Services/TrackingServices.cs
mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.cs
mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ChangeLog
mcs/class/corlib/System.Runtime.Serialization.Formatters/ChangeLog
mcs/class/corlib/System.Runtime.Serialization.Formatters/FormatterAssemblyStyle.cs
mcs/class/corlib/System.Runtime.Serialization.Formatters/FormatterTypeStyle.cs
mcs/class/corlib/System.Runtime.Serialization.Formatters/IFieldInfo.cs
mcs/class/corlib/System.Runtime.Serialization.Formatters/ISoapMessage.cs
mcs/class/corlib/System.Runtime.Serialization.Formatters/InternalRM.cs
mcs/class/corlib/System.Runtime.Serialization.Formatters/InternalST.cs
mcs/class/corlib/System.Runtime.Serialization.Formatters/ServerFault.cs
mcs/class/corlib/System.Runtime.Serialization.Formatters/SoapFault.cs
mcs/class/corlib/System.Runtime.Serialization.Formatters/SoapMessage.cs
mcs/class/corlib/System.Runtime.Serialization.Formatters/TypeFilterLevel.cs
mcs/class/corlib/System.Text/ChangeLog
mcs/class/corlib/System.Text/Encoding.cs
mcs/class/corlib/System.Text/UTF7Encoding.cs
mcs/class/corlib/System.Text/UnicodeEncoding.cs

index 42160f73b74c9f6f6fb9d79de61af3b817a4252f..bbb23738107362c5e093c2e1cd53a81b545845bd 100644 (file)
@@ -1,3 +1,8 @@
+2007-05-03  Dick Porter  <dick@ximian.com>
+
+       * ProxyAttribute.cs: 
+       * RealProxy.cs: Update to 2.0 profile
+
 2006-07-15  Jonathan Chambers  <joncham@gmail.com>
 
        * RealProxy.cs: Indicate that all fields need keep in sync
index 10804a6ec2ea2c4ac572e01095ff5245c0db87e2..c184066f205d5afcefde3c53417e5b0a6881d7c3 100644 (file)
@@ -35,9 +35,16 @@ using System.Runtime.Remoting.Activation;
 using System.Runtime.Remoting.Contexts;
 using System.Runtime.Remoting.Channels;
 
+#if NET_2_0
+using System.Runtime.InteropServices;
+#endif
+
 namespace System.Runtime.Remoting.Proxies {
 
        [AttributeUsage (AttributeTargets.Class)]
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public class ProxyAttribute : Attribute, IContextAttribute
        {
                public ProxyAttribute ()
@@ -55,11 +62,17 @@ namespace System.Runtime.Remoting.Proxies {
                        return RemotingServices.GetRealProxy (RemotingServices.GetProxyForRemoteObject (objref, serverType));
                }
 
+#if NET_2_0
+               [ComVisible (true)]
+#endif
                public void GetPropertiesForNewContext (IConstructionCallMessage msg)
                {
                        // Nothing to add
                }
 
+#if NET_2_0
+               [ComVisible (true)]
+#endif
                public bool IsContextOK (Context ctx, IConstructionCallMessage msg)
                {
                        return true;
index b5d74d99e66f3b2383b90a1d47d7af0fac34fbb8..fb867c3abd7bc8a7ac4f2c7f96b9a5c3e8d33959 100644 (file)
@@ -41,6 +41,9 @@ using System.Runtime.Remoting.Contexts;
 using System.Runtime.CompilerServices;
 using System.Runtime.Serialization;
 
+#if NET_2_0
+using System.Runtime.InteropServices;
+#endif
 
 namespace System.Runtime.Remoting.Proxies
 {
@@ -50,6 +53,9 @@ namespace System.Runtime.Remoting.Proxies
                bool _custom_type_info;
        }
        
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public abstract class RealProxy {
                // other classes visible to the runtime 
                // derive from this class so keep these locals
@@ -244,6 +250,9 @@ namespace System.Runtime.Remoting.Proxies
                }
 
                [MonoTODO]
+#if NET_2_0
+               [ComVisible (true)]
+#endif
                public IConstructionReturnMessage InitializeServerObject(IConstructionCallMessage ctorMsg)
                {
                        throw new NotImplementedException();
index 2c2bf6f6d4224e15ef2e44c246a34fee5cbd4251..960fe802cfbf0af1af82ee946e1998f4c8f4128b 100644 (file)
@@ -1,3 +1,9 @@
+2007-05-03  Dick Porter  <dick@ximian.com>
+
+       * ITrackingHandler.cs: 
+       * EnterpriseServicesHelper.cs: 
+       * TrackingServices.cs: Update to 2.0 profile
+
 2005-08-18  Lluis Sanchez Gual  <lluis@ximian.com>
 
        * TrackingServices.cs: Properly generate an array from the
index 20cd9e579e6aaf06bf79987cfeabd5c5a6f1378c..97a986269078a0de1019dd368c6dcd0a7f42f862 100644 (file)
@@ -34,14 +34,24 @@ using System.Runtime.Remoting.Messaging;
 using System.Runtime.Remoting.Activation;
 using System.Runtime.Remoting.Proxies;
 
+#if NET_2_0
+using System.Runtime.InteropServices;
+#endif
+
 namespace System.Runtime.Remoting.Services 
 {
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public sealed class EnterpriseServicesHelper
        {
                public EnterpriseServicesHelper ()
                {
                }
                
+#if NET_2_0
+               [ComVisible (true)]
+#endif
                public static IConstructionReturnMessage CreateConstructionReturnMessage (IConstructionCallMessage ctorMsg, MarshalByRefObject retObj)
                {
                        return new ConstructionResponse (retObj, null, ctorMsg);
index 684710821f5f823543a588569e5e56a13a997c01..1eb2766b65c61d608e74d970de1dd5c4470db896 100644 (file)
 
 using System.Runtime.Remoting;
 
+#if NET_2_0
+using System.Runtime.InteropServices;
+#endif
+
 namespace System.Runtime.Remoting.Services {
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public interface ITrackingHandler
        {
                void DisconnectedObject (object obj);
index 1142e289af4199ae5d17ca6658150a5b11ae6627..5416c2c50075c658b7af8950d6253ed2f85b7f44 100644 (file)
@@ -35,7 +35,14 @@ using System;
 using System.Collections;
 using System.Runtime.Remoting;
 
+#if NET_2_0
+using System.Runtime.InteropServices;
+#endif
+
 namespace System.Runtime.Remoting.Services {
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public class TrackingServices {
                static ArrayList _handlers = new ArrayList();
 
index 151168b867cc83dc7662931a681495dd6f7d7b8f..cf3febc4574ae835b3ec960e72c1ef1bd34ceb11 100644 (file)
@@ -36,6 +36,9 @@ using System.Security.Permissions;
 
 namespace System.Runtime.Serialization.Formatters.Binary {
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public sealed class BinaryFormatter : IRemotingFormatter, IFormatter 
        {
 #if NET_2_0
@@ -115,7 +118,9 @@ namespace System.Runtime.Serialization.Formatters.Binary {
                }
 
 #if NET_1_1
+#if !NET_2_0
                [System.Runtime.InteropServices.ComVisible (false)]
+#endif
                public TypeFilterLevel FilterLevel 
                {
                        get { return filter_level; }
index 5ca49852fc837f05f44e813aa0ff0ff5c0a8cd7d..e2e29eee87b5f117787f48a3e95d6b9de840ac39 100644 (file)
@@ -1,3 +1,7 @@
+2007-05-03  Dick Porter  <dick@ximian.com>
+
+       * BinaryFormatter.cs: Update to 2.0 profile
+
 2006-12-25  Robert Jordan  <robertj@gmx.net>
 
        * binary_serialization_format.htm: Update the NET_2_0 format.
index 6d0c4a8c55f506985d48ba2708e5e3435f9e5e39..21123ca15b7393b7d0882a6dd633561fb6c168e1 100644 (file)
@@ -1,3 +1,16 @@
+2007-05-03  Dick Porter  <dick@ximian.com>
+
+       * IFieldInfo.cs: 
+       * ISoapMessage.cs: 
+       * InternalRM.cs: 
+       * InternalST.cs: 
+       * ServerFault.cs: 
+       * SoapFault.cs: 
+       * SoapMessage.cs: 
+       * FormatterAssemblyStyle.cs: 
+       * FormatterTypeStyle.cs: 
+       * TypeFilterLevel.cs: Update to 2.0 profile
+
 2004-06-15  Gert Driesen <drieseng@users.sourceforge.net>
 
        * SoapMessage.cs: fixed serialization compatibility with MS.NET
index abab235656746212f3ddbff90341283809355699..91623563ffc8bfd02029f9f1b418edd7c455be3a 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+#if NET_2_0
+using System.Runtime.InteropServices;
+#endif
 
 namespace System.Runtime.Serialization.Formatters {
 
 
        /// <summary>
        /// </summary>
+#if NET_2_0
+       [ComVisible (true)]
+       [Serializable]
+#endif
        public enum FormatterAssemblyStyle {
 
                /// <summary>
index 6270851155e2e124e91539dd2faa6b2a9cd31e5f..43471ecbba5cc778c12b0d4fb035a1d23e8c51fa 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+#if NET_2_0
+using System.Runtime.InteropServices;
+#endif
 
 namespace System.Runtime.Serialization.Formatters {
 
 
        /// <summary>
        /// </summary>
+#if NET_2_0
+       [ComVisible (true)]
+       [Serializable]
+#endif
        public enum FormatterTypeStyle {
 
                /// <summary>
index fcd9dfe49248689dbeb30a5568b2cc5e590e7dba..10347be542df5e8920e0f4e2c5542fbddabc87b9 100644 (file)
@@ -6,34 +6,41 @@
 //\r
 // (C) David Dawkins\r
 //\r
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-// 
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-// 
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
+\r
+#if NET_2_0\r
+using System.Runtime.InteropServices;\r
+#endif\r
 \r
 namespace System.Runtime.Serialization.Formatters {\r
 \r
        /// <summary>\r
        /// Interface for querying field information on serialized objects.</summary>\r
+#if NET_2_0\r
+       [ComVisible (true)]\r
+#endif\r
        public interface IFieldInfo {\r
 \r
                /// <summary>\r
index bc167e25d9dc3373999b728e9977c25afafac2d4..f5e2ef4d5b1729371f2b4711a34493b79134d1b1 100644 (file)
@@ -6,36 +6,43 @@
 //\r
 // (C) David Dawkins\r
 //\r
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-// 
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-// 
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
 \r
 using System.Runtime.Remoting.Messaging;\r
 \r
+#if NET_2_0\r
+using System.Runtime.InteropServices;\r
+#endif\r
+\r
 namespace System.Runtime.Serialization.Formatters {\r
 \r
        /// <summary>\r
        /// Interface for making SOAP method calls</summary>\r
+#if NET_2_0\r
+       [ComVisible (true)]\r
+#endif\r
        public interface ISoapMessage {\r
 \r
                /// <summary>\r
index 12413c7e47862b2a8be156000dda11551f7688d7..7c6f8b9dd962b15c6c88064b09dbc6ee53d9d44d 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+#if NET_2_0
+using System.Runtime.InteropServices;
+using System.Diagnostics;
+#endif
+
 namespace System.Runtime.Serialization.Formatters
 {
        //LAMESPEC: Use of this class??
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public sealed class InternalRM
        {
-               private InternalRM ()
+#if NET_2_0
+               public
+#else
+               private
+#endif
+               InternalRM ()
+               {
+               }
+
+#if NET_2_0
+               [Conditional ("_LOGGING")]
+               public static void InfoSoap (params object[] messages)
+               {
+                       throw new NotImplementedException ();
+               }
+               
+               public static bool SoapCheckEnabled ()
                {
+                       throw new NotImplementedException ();
                }
+#endif
        }
 }
index 2a1bc6838d81165e9c33ae274f419c477afa33a6..e257059f1a059ff277ad337dbf8db5a0e3541bd0 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+#if NET_2_0
+using System.Runtime.InteropServices;
+using System.Diagnostics;
+using System.Reflection;
+#endif
+
 namespace System.Runtime.Serialization.Formatters
 {
        //LAMESPEC: Use of this class??
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public sealed class InternalST
        {
                private InternalST ()
                {
                }
+
+#if NET_2_0
+               [Conditional ("_LOGGING")]
+               public static void InfoSoap (params object[] messages)
+               {
+                       throw new NotImplementedException ();
+               }
+               
+               public static Assembly LoadAssemblyFromString (string assemblyString)
+               {
+                       throw new NotImplementedException ();
+               }
+               
+               public static void SerializationSetValue (FieldInfo fi,
+                                                         object target,
+                                                         object value)
+               {
+                       throw new NotImplementedException ();
+               }
+               
+               [Conditional ("SER_LOGGING")]
+               public static void Soap (params object[] messages)
+               {
+                       throw new NotImplementedException ();
+               }
+               
+               [Conditional ("_DEBUG")]
+               public static void SoapAssert (bool condition, string message)
+               {
+                       throw new NotImplementedException ();
+               }
+               
+               public static bool SoapCheckEnabled ()
+               {
+                       throw new NotImplementedException ();
+               }
+#endif
        }
 }
index be5c2072c650742b23cab53815585d7c6c1f08aa..50ceedc8c9a0fecff8f4d02ec29763c6b89c9943 100644 (file)
@@ -6,38 +6,45 @@
 //\r
 // 2002 (C) Copyright, Ximian, Inc.\r
 //\r
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-// 
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-// 
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
 \r
-using System;
+//\r
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
+\r
+using System;\r
 using System.Runtime.Remoting.Metadata;\r
 using System.Runtime.Serialization;\r
 \r
+#if NET_2_0\r
+using System.Runtime.InteropServices;\r
+#endif\r
+\r
 namespace System.Runtime.Serialization.Formatters {\r
 \r
-       [Serializable]
+       [Serializable]\r
        [SoapType()]\r
+#if NET_2_0\r
+       [ComVisible (true)]\r
+#endif\r
        public sealed class ServerFault\r
        {\r
                string exceptionType;\r
index 9aabed089f4817c26fb83f90100e2535d219a92b..024d910f703a15b68169705a72d9a8e2b07ebde1 100644 (file)
@@ -6,38 +6,45 @@
 //\r
 // 2002 (C) Copyright, Ximian, Inc.\r
 //\r
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-// 
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-// 
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
 \r
-using System;
+//\r
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
+\r
+using System;\r
 using System.Runtime.Remoting.Metadata;\r
 using System.Runtime.Serialization;\r
 \r
+#if NET_2_0\r
+using System.Runtime.InteropServices;\r
+#endif\r
+\r
 namespace System.Runtime.Serialization.Formatters {\r
 \r
-       [Serializable]
+       [Serializable]\r
        [SoapType()]\r
+#if NET_2_0\r
+       [ComVisible (true)]\r
+#endif\r
        public sealed class SoapFault : ISerializable\r
        {\r
                string code;\r
index 37f6194c41f5648f02bb8a7c6cd766a9c112baa5..8e8ce4afe1910bb955d12a37a2fa515231b53b48 100644 (file)
@@ -6,37 +6,44 @@
 //\r
 // 2002 (C) Copyright, Ximian, Inc.\r
 //\r
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-// 
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-// 
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
 \r
 using System;\r
 using System.Runtime.Remoting.Messaging;\r
 using System.Runtime.Serialization.Formatters;\r
 \r
+#if NET_2_0\r
+using System.Runtime.InteropServices;\r
+#endif\r
+\r
 namespace System.Runtime.Serialization.Formatters {\r
 \r
        [Serializable]\r
+#if NET_2_0\r
+       [ComVisible (true)]\r
+#endif\r
        public class SoapMessage : ISoapMessage\r
        {\r
                private Header[] headers;\r
index 7a180f9a13ebcbc8980eade51aa61fe116ac753e..9d616eafd7bf876ac713b2b7bd085e8b6ee5793d 100644 (file)
 
 #if NET_1_1
 
+#if NET_2_0
+using System.Runtime.InteropServices;
+#endif
+
 namespace System.Runtime.Serialization.Formatters
 {
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public enum TypeFilterLevel
        {
                Low = 2,
index 1df8ccb122e115803a874959d2c48c307469c630..41f8289adb4a0545597ce20ceda02000dce3768a 100644 (file)
@@ -1,3 +1,9 @@
+2007-05-03  Dick Porter  <dick@ximian.com>
+
+       * Encoding.cs: 
+       * UnicodeEncoding.cs: 
+       * UTF7Encoding.cs: Update to 2.0 profile
+
 2007-02-01  Gert Driesen  <drieseng@users.sourceforge.net>
 
        * Encoding.cs: Enabled ArgumentException in GetEncoding (string) again.
index 804bb4772fdb305b66af0e05b87220767096a4b9..6842f4ed5280d6585f331be941a02abce8852bbc 100644 (file)
@@ -602,11 +602,13 @@ public abstract class Encoding
                return encoding_infos;
        }
 
+       [ComVisible (false)]
        public bool IsAlwaysNormalized ()
        {
                return IsAlwaysNormalized (NormalizationForm.FormC);
        }
 
+       [ComVisible (false)]
        public virtual bool IsAlwaysNormalized (NormalizationForm form)
        {
                // umm, ASCIIEncoding should have overriden this method, no?
index 2fada6d05366377530cefb4331d935298f6855ee..7c5a2d79fac1199152f69768cb7e27d9590d5977 100644 (file)
@@ -110,13 +110,14 @@ class UTF7Encoding : Encoding
        }
 
 #if NET_2_0
+       [ComVisible (false)]
        public override int GetHashCode ()
        {
                int basis = base.GetHashCode ();
                return allowOptionals ? -basis : basis;
        }
 
-       [ComVisible(true)]
+       [ComVisible(false)]
        public override bool Equals (object other)
        {
                UTF7Encoding e = other as UTF7Encoding;
@@ -677,46 +678,46 @@ class UTF7Encoding : Encoding
        // a bunch of practically missing implementations (but should just work)
 
        [CLSCompliantAttribute (false)]
-       [ComVisible(true)]
+       [ComVisible(false)]
        public override unsafe int GetByteCount (char *chars, int count)
        {
                return base.GetByteCount (chars, count);
        }
 
-       [ComVisible(true)]
+       [ComVisible(false)]
        public override int GetByteCount (string s)
        {
                return base.GetByteCount (s);
        }
 
-       [ComVisible(true)]
+       [ComVisible(false)]
        [CLSCompliantAttribute (false)]
        public override unsafe int GetBytes (char *chars, int charCount, byte* bytes, int byteCount)
        {
                return base.GetBytes (chars, charCount, bytes, byteCount);
        }
 
-       [ComVisible(true)]
+       [ComVisible(false)]
        public override int GetBytes (string s, int charIndex, int charCount, byte [] bytes, int byteIndex)
        {
                return base.GetBytes (s, charIndex, charCount, bytes, byteIndex);
        }
 
-       [ComVisible(true)]
+       [ComVisible(false)]
        [CLSCompliantAttribute (false)]
        public override unsafe int GetCharCount (byte *bytes, int count)
        {
                return base.GetCharCount (bytes, count);
        }
 
-       [ComVisible(true)]
+       [ComVisible(false)]
        [CLSCompliantAttribute (false)]
        public override unsafe int GetChars (byte* bytes, int byteCount, char* chars, int charCount)
        {
                return base.GetChars (bytes, byteCount, chars, charCount);
        }
 
-       [ComVisible(true)]
+       [ComVisible(false)]
        public override string GetString (byte [] bytes, int index, int count)
        {
                return base.GetString (bytes, index, count);
index 1d4ef22469391bfa9e9c6ef4527740a2887d3e38..a64686562974f59d7ff954952da614ea9619f798 100644 (file)
@@ -355,6 +355,12 @@ public class UnicodeEncoding : Encoding
                return count;
        }
 
+       [ComVisible (false)]
+       public override Encoder GetEncoder ()
+       {
+               return(base.GetEncoder ());
+       }
+       
        // Get the maximum number of bytes needed to encode a
        // specified number of characters.
        public override int GetMaxByteCount (int charCount)