Miscellaneous DebrisAvner Kashtan's Frustrations and ExultationsSystem.Diagnostics.EventLogEntry and the non-equal Equals.- November 25, 2007 Just a quick heads-up in case you're stumped with this problem, or just passing by: The System.Diagnostics.EventLogEntry class implements the Equals method to check if two entries are identical, even if they're not the same instance. However, contrary to best practices, it does NOT overload the operator==, so these two bits of code will behave differently: EventLog myEventLog = new EventLog("Application"); EventLogEntry entry1 = myEventLog.Entries0; EventLogEntry entry2 =...http://weblogs.asp.net/avnerk/archive/2007/11/25/system-diagnostics-eventlogentry-and-the-... Displaying live log file contents- November 21, 2007 I'm writing some benchmarking code, which involves a Console application calling a COM+ hosted process and measuring performance. I want to constantly display results on my active console, but since some of my code is running out-of-process, I can't really write directly to the console from all parts of the system. Not to mention the fact that I want it logged to a file as well. So I cobbled together a quick Log class that does two things - it writes to a shared log file, keeping no locks so...http://weblogs.asp.net/avnerk/archive/2007/11/21/displaying-live-log-file-contents.aspx |