+2004-06-08 Duncan Mak <duncan@ximian.com>
+
+ * ObjectManager.cs (RegisterObject): Throw
+ ArgumentOutOfRangeException if the objectID parameter is less than
+ or equal to zero. This check was missing from this particular
+ overload.
+
2004-05-14 Marek Safar <marek.safar@seznam.cz>
* SerializationInfo.cs: Removed useless [CLSCompliant (false)]
-//
-// System.Runtime.Serialization.ObjectManager.cs
-//
-// Author: Lluis Sanchez Gual (lluis@ideary.com)
-//
-// (C) 2003 Lluis Sanchez Gual
-//
-
+//\r
+// System.Runtime.Serialization.ObjectManager.cs\r
+//\r
+// Author: Lluis Sanchez Gual (lluis@ideary.com)\r
+//\r
+// (C) 2003 Lluis Sanchez Gual\r
+//\r
+\r
using System;\r
using System.Collections;\r
using System.Reflection;\r
\r
public virtual void RegisterObject (object obj, long objectID)\r
{\r
+ if (objectID <= 0) throw new ArgumentOutOfRangeException("objectID","The objectID parameter is less than or equal to zero");\r
RegisterObjectInternal (obj, GetObjectRecord (objectID));\r
}\r
\r
public void RegisterObject (object obj, long objectID, SerializationInfo info)\r
{\r
if (objectID <= 0) throw new ArgumentOutOfRangeException("objectID","The objectID parameter is less than or equal to zero");\r
-\r
+ \r
ObjectRecord record = GetObjectRecord (objectID);\r
record.Info = info;\r
RegisterObjectInternal (obj, record);\r