| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 18c7e9a commit 122d3af
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -212,7 +212,9 @@ public static Assembly LoadAssemblyPath(string name) { | |||
| 212 | 212 | // namespace. Returns true if any assemblies were loaded. | |
| 213 | 213 | // TODO item 3 "* Deprecate implicit loading of assemblies": | |
| 214 | 214 | // Set the fromFile flag if the name of the loaded assembly matches | |
| 215 | - // the fully qualified name that was requested. | ||
| 215 | + // the fully qualified name that was requested if the framework | ||
| 216 | + // actually loads an assembly. | ||
| 217 | + // Call ONLY for namespaces that HAVE NOT been cached yet. | ||
| 216 | 218 | //=================================================================== | |
| 217 | 219 | ||
| 218 | 220 | public static bool LoadImplicit(string name, out bool fromFile) { | |
@@ -225,17 +227,26 @@ public static bool LoadImplicit(string name, out bool fromFile) { | |||
| 225 | 227 | for (int i = 0; i < names.Length; i++) { | |
| 226 | 228 | s = (i == 0) ? names[0] : s + "." + names[i]; | |
| 227 | 229 | if (!probed.ContainsKey(s)) { | |
| 228 | - if (LoadAssemblyPath(s) != null){ | ||
| 230 | + if (LoadAssemblyPath(s) != null) { | ||
| 229 | 231 | loaded = true; | |
| 232 | + /* 2010-08-16: Deprecation support */ | ||
| 233 | + if (s == name) { | ||
| 234 | + fromFile = true; | ||
| 235 | + } | ||
| 230 | 236 | } | |
| 231 | 237 | else if (LoadAssembly(s) != null) { | |
| 232 | 238 | loaded = true; | |
| 239 | + /* 2010-08-16: Deprecation support */ | ||
| 240 | + if (s == name) { | ||
| 241 | + fromFile = true; | ||
| 242 | + } | ||
| 233 | 243 | } | |
| 234 | 244 | probed[s] = 1; | |
| 235 | - // 2010-12-24: Implicit Load Deprecation logic | ||
| 236 | - if (loaded && (s == name)) { | ||
| 245 | + // 2010-12-24: Deprecation logic | ||
| 246 | + /* if (loaded && (s == name)) { | ||
| 237 | 247 | fromFile = true; | |
| 238 | - } | ||
| 248 | + break; | ||
| 249 | + } */ | ||
| 239 | 250 | } | |
| 240 | 251 | } | |
| 241 | 252 | return loaded; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments