Added option to check RTF with StepRTB

Use Temporary Folder for SearchResults
Remove override of Equals - return to default
Comment-out Debug
Remove PDFs that are older than one hour
Added a ShowLocalStack that takes a format and a list of parameters
This commit is contained in:
Rich
2010-10-12 14:59:23 +00:00
parent d3c6e41a5a
commit dc6721f54c
9 changed files with 209 additions and 175 deletions

View File

@@ -62,22 +62,26 @@ namespace Volian.Base.Library
}
return sb.ToString();
}
public static void ShowStackLocal(string str, params object[] objects)
{
Console.WriteLine(string.Format(str, objects) + StackToStringLocal(2,10));
}
public static void ShowStackFirstLocal(string str)
{
Console.WriteLine(str + " " + StackToStringLocal(3,0));
Console.WriteLine(str + "\r\n" + StackToStringLocal(3, 0));
}
public static void ShowStackLocal(string str,int start)
{
Console.WriteLine(str + " " + StackToStringLocal(start,1));
Console.WriteLine(str + "\r\n" + StackToStringLocal(start,1));
}
public static void ShowStackLocal(string str,int start, int limit)
{
Console.WriteLine(str + " " + StackToStringLocal(start, limit));
Console.WriteLine(str + "\r\n" + StackToStringLocal(start, limit));
}
private static string StackToStringLocal(int start, int limit)
{
StringBuilder sb = new StringBuilder();
string sep = "Local Method - ";
string sep = "\r\n";
StackTrace st = new StackTrace(true);
StackFrame[] sfs = st.GetFrames();
int count = 0;