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

◆ ResolveUnmanagedDllToPath()

string? System.Runtime.Loader.AssemblyDependencyResolver.ResolveUnmanagedDllToPath ( string unmanagedDllName)
inline

Definition at line 108 of file AssemblyDependencyResolver.cs.

109 {
110 if (unmanagedDllName == null)
111 {
112 throw new ArgumentNullException("unmanagedDllName");
113 }
116 foreach (LibraryNameVariation item in LibraryNameVariation.DetermineLibraryNameVariations(unmanagedDllName, isRelativePath))
117 {
118 string path = item.Prefix + unmanagedDllName + item.Suffix;
119 string[] array2 = array;
120 foreach (string path2 in array2)
121 {
122 string text = Path.Combine(path2, path);
123 if (File.Exists(text))
124 {
125 return text;
126 }
127 }
128 }
129 return null;
130 }
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
static bool Exists([NotNullWhen(true)] string? path)
Definition File.cs:97
static string Combine(string path1, string path2)
Definition Path.cs:304
static readonly char DirectorySeparatorChar
Definition Path.cs:71
static bool IsPathFullyQualified(string path)
Definition Path.cs:264

References System.Runtime.Loader.AssemblyDependencyResolver._assemblyDirectorySearchPaths, System.Runtime.Loader.AssemblyDependencyResolver._nativeSearchPaths, System.array, System.IO.Path.Combine(), System.Collections.Generic.Dictionary< TKey, TValue >.Contains(), System.Runtime.Loader.LibraryNameVariation.DetermineLibraryNameVariations(), System.IO.Path.DirectorySeparatorChar, System.IO.File.Exists(), System.IO.Path.IsPathFullyQualified(), System.item, and System.text.

Referenced by Internal.Runtime.InteropServices.IsolatedComponentLoadContext.LoadUnmanagedDll().