private _BeginEvent ( uint col, string wszName ) : int | ||
col | uint | |
wszName | string | |
return | int |
internal static extern int _BeginEvent(uint col, string wszName);
public PixEvent(string eventName = "...") { StackTrace st = new StackTrace(); StackFrame sf = st.GetFrame(1); string clsName = new string( sf.GetMethod().DeclaringType.Name.Where(ch => char.IsUpper(ch)).ToArray()); SafeNativeMethods._BeginEvent(0, clsName + "." + sf.GetMethod().Name + " - " + eventName); }