Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetFile()

override FileStream System.Reflection.RuntimeAssembly.GetFile ( string name)
inlinevirtual

Reimplemented from System.Reflection.Assembly.

Definition at line 348 of file RuntimeAssembly.cs.

349 {
350 if (Location.Length == 0)
351 {
352 throw new FileNotFoundException(SR.IO_NoFileTableInInMemoryAssemblies);
353 }
354 RuntimeModule runtimeModule = (RuntimeModule)GetModule(name);
355 if (runtimeModule == null)
356 {
357 return null;
358 }
359 return new FileStream(runtimeModule.GetFullyQualifiedName(), FileMode.Open, FileAccess.Read, FileShare.Read, 4096, useAsync: false);
360 }
static void GetModule(QCallAssembly assembly, string name, ObjectHandleOnStack retModule)

References System.Reflection.RuntimeAssembly.GetModule(), System.SR.IO_NoFileTableInInMemoryAssemblies, and System.Reflection.RuntimeAssembly.Location.