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

◆ ValidateAssemblyNameWithSimpleName()

static Assembly System.Runtime.Loader.AssemblyLoadContext.ValidateAssemblyNameWithSimpleName ( Assembly assembly,
string requestedSimpleName )
inlinestaticprivateinherited

Definition at line 628 of file AssemblyLoadContext.cs.

629 {
630 if (string.IsNullOrEmpty(requestedSimpleName))
631 {
632 throw new ArgumentException(SR.ArgumentNull_AssemblyNameName);
633 }
634 string value = null;
636 if (runtimeAssembly != null)
637 {
638 value = runtimeAssembly.GetSimpleName();
639 }
640 if (string.IsNullOrEmpty(value) || !requestedSimpleName.Equals(value, StringComparison.InvariantCultureIgnoreCase))
641 {
642 throw new InvalidOperationException(SR.Argument_CustomAssemblyLoadContextRequestedNameMismatch);
643 }
644 return assembly;
645 }
static RuntimeAssembly GetRuntimeAssembly(Assembly asm)

References System.SR.Argument_CustomAssemblyLoadContextRequestedNameMismatch, System.SR.ArgumentNull_AssemblyNameName, System.Runtime.Loader.AssemblyLoadContext.GetRuntimeAssembly(), and System.value.

Referenced by System.Runtime.Loader.AssemblyLoadContext.ResolveUsingEvent(), and System.Runtime.Loader.AssemblyLoadContext.ResolveUsingLoad().