Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGert Driesen <drieseng@users.sourceforge.net>2004-06-15 21:47:32 +0400
committerGert Driesen <drieseng@users.sourceforge.net>2004-06-15 21:47:32 +0400
commit10a4773f38af8c272d98b98811f28ec2d57891d6 (patch)
treec2a3892603d4177a3e4d748e0c885f8c08d70d54 /mcs/class/corlib/System
parent1e44fbf47fb911e2b5f8bd82d8230f6bf5989df7 (diff)
* AppDomainSetup.cs: added TODO for serialization
* ExecutionEngineException.cs: added missing serialization ctor * InvalidProgramException.cs: added missing serialization ctor * MulticastNotSupportedException.cs: added missing serialization ctor * ObsoleteAttribute.cs: fixed serialization compatibility with MS.NET * Random.cs: fixed serialization compatibility with MS.NET svn path=/trunk/mcs/; revision=29618
Diffstat (limited to 'mcs/class/corlib/System')
-rwxr-xr-xmcs/class/corlib/System/AppDomainSetup.cs1
-rw-r--r--mcs/class/corlib/System/ChangeLog12
-rw-r--r--mcs/class/corlib/System/ExecutionEngineException.cs6
-rw-r--r--mcs/class/corlib/System/InvalidProgramException.cs6
-rw-r--r--mcs/class/corlib/System/MulticastNotSupportedException.cs6
-rw-r--r--mcs/class/corlib/System/ObsoleteAttribute.cs14
-rw-r--r--mcs/class/corlib/System/Random.cs18
7 files changed, 45 insertions, 18 deletions
diff --git a/mcs/class/corlib/System/AppDomainSetup.cs b/mcs/class/corlib/System/AppDomainSetup.cs
index e65abedbd99..8f7e8c9517e 100755
--- a/mcs/class/corlib/System/AppDomainSetup.cs
+++ b/mcs/class/corlib/System/AppDomainSetup.cs
@@ -38,6 +38,7 @@ namespace System
{
[Serializable]
[ClassInterface (ClassInterfaceType.None)]
+ [MonoTODO ("Fix serialization compatibility with MS.NET")]
public sealed class AppDomainSetup : IAppDomainSetup
{
string application_base;
diff --git a/mcs/class/corlib/System/ChangeLog b/mcs/class/corlib/System/ChangeLog
index e424ad437b3..1eca62a5437 100644
--- a/mcs/class/corlib/System/ChangeLog
+++ b/mcs/class/corlib/System/ChangeLog
@@ -1,9 +1,17 @@
+2004-06-15 Gert Driesen <drieseng@users.sourceforge.net>
-Tue Jun 15 15:15:44 CEST 2004 Paolo Molaro <lupus@ximian.com>
+ * AppDomainSetup.cs: added TODO for serialization
+ * ExecutionEngineException.cs: added missing serialization ctor
+ * InvalidProgramException.cs: added missing serialization ctor
+ * MulticastNotSupportedException.cs: added missing serialization ctor
+ * ObsoleteAttribute.cs: fixed serialization compatibility with MS.NET
+ * Random.cs: fixed serialization compatibility with MS.NET
+
+2004-06-15 Paolo Molaro <lupus@ximian.com>
* Type.cs: removed unused (and non-existing) icall type_is_instance.
-2004-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+2004-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* Environment.cs: use internalGetHome instead of getting "HOME" as
that variable may not be defined.
diff --git a/mcs/class/corlib/System/ExecutionEngineException.cs b/mcs/class/corlib/System/ExecutionEngineException.cs
index 75f651defdc..4d672e7116c 100644
--- a/mcs/class/corlib/System/ExecutionEngineException.cs
+++ b/mcs/class/corlib/System/ExecutionEngineException.cs
@@ -30,6 +30,8 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+using System.Runtime.Serialization;
+
namespace System
{
[Serializable]
@@ -50,5 +52,9 @@ namespace System
: base (message, innerException)
{
}
+
+ internal ExecutionEngineException (SerializationInfo info, StreamingContext context) : base(info, context)
+ {
+ }
}
}
diff --git a/mcs/class/corlib/System/InvalidProgramException.cs b/mcs/class/corlib/System/InvalidProgramException.cs
index 12754b52c14..ea78c883d6e 100644
--- a/mcs/class/corlib/System/InvalidProgramException.cs
+++ b/mcs/class/corlib/System/InvalidProgramException.cs
@@ -30,6 +30,8 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+using System.Runtime.Serialization;
+
namespace System
{
[Serializable]
@@ -50,5 +52,9 @@ namespace System
: base (message, inner)
{
}
+
+ internal InvalidProgramException (SerializationInfo info, StreamingContext context) : base(info, context)
+ {
+ }
}
}
diff --git a/mcs/class/corlib/System/MulticastNotSupportedException.cs b/mcs/class/corlib/System/MulticastNotSupportedException.cs
index 34ce9b3e66b..a05f15aa89e 100644
--- a/mcs/class/corlib/System/MulticastNotSupportedException.cs
+++ b/mcs/class/corlib/System/MulticastNotSupportedException.cs
@@ -30,6 +30,8 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+using System.Runtime.Serialization;
+
namespace System
{
[Serializable]
@@ -50,5 +52,9 @@ namespace System
: base (message, inner)
{
}
+
+ internal MulticastNotSupportedException (SerializationInfo info, StreamingContext context) : base(info, context)
+ {
+ }
}
}
diff --git a/mcs/class/corlib/System/ObsoleteAttribute.cs b/mcs/class/corlib/System/ObsoleteAttribute.cs
index a9430637459..7e9596288cf 100644
--- a/mcs/class/corlib/System/ObsoleteAttribute.cs
+++ b/mcs/class/corlib/System/ObsoleteAttribute.cs
@@ -41,8 +41,8 @@ namespace System
[Serializable]
public sealed class ObsoleteAttribute : Attribute
{
- private string message;
- private bool isError = false;
+ private string _message;
+ private bool _error;
// Constructors
public ObsoleteAttribute ()
@@ -52,22 +52,22 @@ namespace System
public ObsoleteAttribute (string message)
{
- this.message = message;
+ _message = message;
}
public ObsoleteAttribute (string message, bool error)
{
- this.message = message;
- this.isError = error;
+ _message = message;
+ _error = error;
}
// Properties
public string Message {
- get { return message; }
+ get { return _message; }
}
public bool IsError {
- get { return isError; }
+ get { return _error; }
}
}
}
diff --git a/mcs/class/corlib/System/Random.cs b/mcs/class/corlib/System/Random.cs
index 5e3116e7c64..3bc3e23498b 100644
--- a/mcs/class/corlib/System/Random.cs
+++ b/mcs/class/corlib/System/Random.cs
@@ -42,7 +42,7 @@ namespace System
const int MZ = 0;
int inext, inextp;
- int [] ma = new int [56];
+ int [] SeedArray = new int [56];
public Random ()
: this (Environment.TickCount)
@@ -56,21 +56,21 @@ namespace System
// Numerical Recipes in C online @ http://www.library.cornell.edu/nr/bookcpdf/c7-1.pdf
mj = MSEED - Math.Abs (Seed);
- ma [55] = mj;
+ SeedArray [55] = mj;
mk = 1;
for (int i = 1; i < 55; i++) { // [1, 55] is special (Knuth)
ii = (21 * i) % 55;
- ma [ii] = mk;
+ SeedArray [ii] = mk;
mk = mj - mk;
if (mk < 0)
mk += MBIG;
- mj = ma[ii];
+ mj = SeedArray [ii];
}
for (int k = 1; k < 5; k++) {
for (int i = 1; i < 56; i++) {
- ma [i] -= ma [1 + (i + 30) % 55];
- if (ma [i] < 0)
- ma [i] += MBIG;
+ SeedArray [i] -= SeedArray [1 + (i + 30) % 55];
+ if (SeedArray [i] < 0)
+ SeedArray [i] += MBIG;
}
}
inext = 0;
@@ -84,12 +84,12 @@ namespace System
if (++inext >= 56) inext = 1;
if (++inextp >= 56) inextp = 1;
- retVal = ma [inext] - ma [inextp];
+ retVal = SeedArray [inext] - SeedArray [inextp];
if (retVal < 0)
retVal += MBIG;
- ma [inext] = retVal;
+ SeedArray [inext] = retVal;
return retVal * (1.0 / MBIG);
}