You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#pragma warning restore CS0436 // Type conflicts with imported type
21
23
22
-
// the namespace name must be in sync with WindowsDisassembler.BuildArguments
24
+
// the namespace name must be in sync with DisassemblyDiagnoser.BuildClrMdArgs
23
25
namespace BenchmarkDotNet.Autogenerated
24
26
{
25
27
public class UniqueProgramName // we need different name than typical "Program" to avoid problems with referencing "Program" types from benchmarked code, #691
global::BenchmarkDotNet.Engines.IHost host; // this variable name is used by CodeGenerator.GetCoreRtSwitch, do NOT change it
43
+
global::BenchmarkDotNet.Engines.IHost host; // this variable name is used by CodeGenerator.GetBenchmarkRunCall, do NOT change it
42
44
if (global::BenchmarkDotNet.Engines.AnonymousPipesHost.TryGetFileHandles(args, out global::System.String writeHandle, out global::System.String readHandle))
43
45
host = new global::BenchmarkDotNet.Engines.AnonymousPipesHost(writeHandle, readHandle);
: 0; // used when re-using generated exe without BDN (typically to repro a bug)
63
61
64
62
if (args.Length == 0)
65
63
{
66
64
host.WriteLine("You have not specified benchmark id (an integer) so the first benchmark will be executed.");
67
65
}
68
-
#if NATIVEAOT
69
-
$NativeAotSwitch$
70
-
#else
71
-
global::System.Type type = typeof(global::BenchmarkDotNet.Autogenerated.UniqueProgramName).Assembly.GetType($"BenchmarkDotNet.Autogenerated.Runnable_{id}");
catch (global::System.Exception oom) when (oom is global::System.OutOfMemoryException || oom is global::System.Reflection.TargetInvocationException reflection && reflection.InnerException is global::System.OutOfMemoryException)
0 commit comments