FindAssembly() static private method

static private FindAssembly ( string name ) : string
name string
return string
Beispiel #1
0
        public static string FindAssembly(string name)
        {
            AssemblyManager.UpdatePath();
            string assemblyName = AssemblyManager.FindAssembly(name);

            if (assemblyName == null)
            {
                throw new FileNotFoundException($"Unable to find assembly '{name}' dll or exe.");
            }
            return(assemblyName);
        }
Beispiel #2
0
 public static string FindAssembly(string name)
 {
     AssemblyManager.UpdatePath();
     return(AssemblyManager.FindAssembly(name));
 }