Exemplo n.º 1
0
        public static void FindEntryPoint(Snippet snippet, out string fileName, out int lineNumber)
        {
            FindFirstTraceCallback firstTrace = new FindFirstTraceCallback();
            IProcessCallback       _callback  = SetCallback(firstTrace);

            try {
                try {
                    snippet(null);
                } catch (FindFirstTraceException) {
                }
                fileName   = firstTrace.FileName;
                lineNumber = firstTrace.LineNumber;
            } finally {
                SetCallback(_callback);
            }
        }
 public static void FindEntryPoint( Snippet snippet, out string fileName, out int lineNumber )
 {
     FindFirstTraceCallback firstTrace = new FindFirstTraceCallback();
     IProcessCallback _callback = SetCallback( firstTrace );
     try {
         try {
             snippet( null );
         } catch( FindFirstTraceException ) {
         }
         fileName = firstTrace.FileName;
         lineNumber = firstTrace.LineNumber;
     } finally {
         SetCallback( _callback );
     }
 }