예제 #1
0
 public async Task <string[]> TestNameOutput()
 {
     return(new List <string>()
     {
         MethodHelpers.GetCurrentMethod(),
         MethodHelpers.GetCurrentMethod(false),
         MethodHelpers.StackFrame(true),
         MethodHelpers.StackFrame(false),
         MethodHelpers.CallerMemberName(nameof(benchmark_dotnet), nameof(TestClass)),
         MethodHelpers.CallerMemberName <TestClass>()
     }.ToArray());
 }
예제 #2
0
 public string CallerMemberNameGeneric() => MethodHelpers.CallerMemberName <TestClass>();
예제 #3
0
 public string CallerMemberName() => MethodHelpers.CallerMemberName(nameof(benchmark_dotnet), nameof(TestClass));