Articles written by Lee Keable

IsNumeric

IsNumeric .NET is missing an IsNumeric function (for c# users anyway). It's dead simple to write one though: private bool IsNumeric(string s) {     try     {Int32.Parse(s);}     catch  

Lee Keable - 1,198 views

Need a high resolution timer?

Need a high resolution timer I like to profile my code regularly to see if any changes I make during development affect performance. In .Net 1.1 there is a distinct lack of a high resolution timer object. Here's one you can use:

Lee Keable - 2,358 views

TraceListener creates huge log files

TraceListener creates huge log files If you've used the .Net trace listeners, you'll know that they just keep appending to the file specified in the App.Config file, this can lead to some massive log files! Here's a simple TraceListener that logs to a new file for every day.

Lee Keable - 11,805 views

Missing App.Path

Missing App.Path If you have the need to load resources (XSL stylesheets, images etc etc) at runtime, you may need to know the path of the currently executing code. In VB6 you'd just use good old App.Path, here is the .Net equivalent.  using System.IO;  string&n

Lee Keable - 3,933 views