1
This commit is contained in:
@@ -53,6 +53,10 @@ namespace BITKit
|
||||
|
||||
private static Type SearchType(string fullName)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(fullName))
|
||||
{
|
||||
throw new ArgumentException("fullName is null or empty", nameof(fullName));
|
||||
}
|
||||
assemblies ??= AppDomain.CurrentDomain.GetAssemblies();
|
||||
return assemblies.Select(assembly => assembly.GetType(fullName, false)).FirstOrDefault(type => type is not null);
|
||||
}
|
||||
|
Reference in New Issue
Block a user