Change-Id: I51fa05c104c40d3a539ed07ff87912857ea3d4f8
Assembly asm = AssemblyLoadContext.Default.LoadFromAssemblyName(new AssemblyName(assemblyStr));
Type type = asm.GetType(typenameStr);
if (type == null)
+ {
Console.WriteLine("[Warning] Check the '" + line + "' in " + fileName);
+ continue;
+ }
if (methodStr != "")
{
MethodInfo method = type.GetMethod(methodStr, bindingFlag);
+ if (method == null)
+ {
+ Console.WriteLine("[Warning] Check the '" + line + "' in " + fileName);
+ continue;
+ }
method.Invoke(null, null);
}
}