Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# get executing method name

using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Reflection;

[MethodImpl(MethodImplOptions.NoInlining)]
public string GetCurrentMethod()
{
    var st = new StackTrace();
    var sf = st.GetFrame(1);

    return sf.GetMethod().Name;
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: parse persian date string to datetime c# 
Csharp :: dapper execute with list of ids 
Csharp :: how to modigy login page asp.net core 
Csharp :: esaddex34 
Csharp :: c# unary operator 
Csharp :: c# convert string to datetime any format 
Csharp :: C# Payroll 
Csharp :: join 2 list rows into one row and add totals fields C# 
Csharp :: How to make a capsule walk in unity 
Csharp :: Unity make a homing object 
Csharp :: Fibonacci Ienumerable 
Csharp :: conveyor function in f# 
Csharp :: c# array does not contain a definition for cast 
Csharp :: c# methods 
Csharp :: short in c# 
Csharp :: why process not found in c# 
Csharp :: c# textbox tab column 
Csharp :: c# compare char arrays 
Csharp :: unity only one component type 
Csharp :: conevrt list to pipe separated string c# 
Csharp :: crystal reports convert decimal to integer in formula 
Csharp :: c# force arguments to be keywords 
Csharp :: c# convert datatable to csv 
Csharp :: unity int to bool 
Csharp :: c# loop backwards 
Csharp :: c# datatable current row 
Csharp :: how to check if a number is prime or not c# 
Csharp :: stackpanel opacity mask from resources wpf 
Csharp :: cancellationtoken.linkedtokensource c# example 
Html :: link css to html 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =