Esempio n. 1
0
 /// <summary>
 /// Returns location of PortablePDB file with the source information for a given callable.
 /// Returns null if PortablePDB cannot be found.
 /// </summary>
 public static string GetPDBLocation(ICallable callable)
 {
     try
     {
         string filename = System.IO.Path.ChangeExtension(callable.UnwrapCallable().GetType().Assembly.Location, ".pdb");
         if (File.Exists(filename))
         {
             return(filename);
         }
         else
         {
             return(null);
         }
     }
     catch (NotSupportedException)
     {
         return(null);
     }
 }