瀏覽代碼

2007-11-12 Igor Zelmanovich <[email protected]>

	* AssemblyResourceLoader.cs:
	according to the tests, GetResourseUrl never returns null.	


svn path=/trunk/mcs/; revision=89464
Igor Zelmanovich 18 年之前
父節點
當前提交
4564cfa88c

+ 5 - 2
mcs/class/System.Web/System.Web.Handlers/AssemblyResourceLoader.cs

@@ -169,10 +169,13 @@ namespace System.Web.Handlers {
 				_embeddedResources [assembly] = hashtable;
 			}
 #if SYSTEM_WEB_EXTENSIONS
-			return (string) hashtable [new ResourceKey (resourceName, notifyScriptLoaded)];
+			string url = (string) hashtable [new ResourceKey (resourceName, notifyScriptLoaded)];
 #else
-			return (string) hashtable [resourceName];
+			string url = (string) hashtable [resourceName];
 #endif
+			if (url == null)
+				url = CreateResourceUrl (assembly, resourceName, notifyScriptLoaded);
+			return url;
 		}
 		
 		static string CreateResourceUrl (Assembly assembly, string resourceName, bool notifyScriptLoaded)

+ 5 - 0
mcs/class/System.Web/System.Web.Handlers/ChangeLog

@@ -1,3 +1,8 @@
+2007-11-12 Igor Zelmanovich <[email protected]>
+
+	* AssemblyResourceLoader.cs:
+	according to the tests, GetResourseUrl never returns null.	
+
 2007-11-12 Igor Zelmanovich <[email protected]>
 
 	* AssemblyResourceLoader.cs: