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

◆ ResolveAssembly()

static Assembly System.TypeNameParser.ResolveAssembly ( string asmName,
Func< AssemblyName, Assembly > assemblyResolver,
bool throwOnError,
ref StackCrawlMark stackMark )
inlinestaticprivate

Definition at line 116 of file TypeNameParser.cs.

117 {
118 Assembly assembly;
119 if (assemblyResolver == null)
120 {
121 if (throwOnError)
122 {
124 }
125 else
126 {
127 try
128 {
130 }
132 {
133 return null;
134 }
135 }
136 }
137 else
138 {
139 assembly = assemblyResolver(new AssemblyName(asmName));
140 if (assembly == null && throwOnError)
141 {
142 throw new FileNotFoundException(SR.Format(SR.FileNotFound_ResolveAssembly, asmName));
143 }
144 }
145 return assembly;
146 }
static RuntimeAssembly InternalLoad(string assemblyName, ref StackCrawlMark stackMark, AssemblyLoadContext assemblyLoadContext=null)
static ? AssemblyLoadContext CurrentContextualReflectionContext

References System.Runtime.Loader.AssemblyLoadContext.CurrentContextualReflectionContext, System.SR.FileNotFound_ResolveAssembly, System.SR.Format(), and System.Reflection.RuntimeAssembly.InternalLoad().

Referenced by System.TypeNameParser.ConstructType().