Преглед изворни кода

2004-05-18 Sebastien Pouliot <[email protected]>

	* Assembly.cs: Return an empty Evidence collection to avoid
	NullReferenceException from calling code (as this is never
	null with MS implementation). See bugzilla #53548.

svn path=/trunk/mcs/; revision=27586
Sebastien Pouliot пре 21 година
родитељ
комит
916c8ae86f

+ 3 - 3
mcs/class/corlib/System.Reflection/Assembly.cs

@@ -5,6 +5,7 @@
 //   Paolo Molaro ([email protected])
 //
 // (C) 2001 Ximian, Inc.  http://www.ximian.com
+// Copyright (C) 2004 Novell (http://www.novell.com)
 //
 
 using System;
@@ -96,10 +97,9 @@ namespace System.Reflection {
 			get;
 		}
 
+		[MonoTODO ("CAS related - post Mono 1.0 (see #53548)")]
 		public virtual Evidence Evidence {
-			get {
-				return null;
-			}
+			get { return new Evidence (); }
 		}
 
 		public bool GlobalAssemblyCache {

+ 6 - 0
mcs/class/corlib/System.Reflection/ChangeLog

@@ -1,3 +1,9 @@
+2004-05-18  Sebastien Pouliot  <[email protected]>
+
+	* Assembly.cs: Return an empty Evidence collection to avoid 
+	NullReferenceException from calling code (as this is never
+	null with MS implementation). See bugzilla #53548.
+
 2004-05-14  Zoltan Varga  <[email protected]>
 
 	* Assembly.cs: Add stub for LoadFrom.