Ben Griswold on November 12th, 2008

Many of my C# methods include what is referred to as a guard clause.  It isn’t a complicated concept.  Simply the first few statements of a routine validates passed-in parameters and/or state of the object and immediately returns an error or gracefully exits to the function is constraints aren’t met.  If I’m not mistaken, this [...]

Continue reading about Guarding Against Multiple Empty Strings

Ben Griswold on November 10th, 2008

I’m currently running Vista and I would like to manually complete the same operations as my Windows Service. Since the Windows Service is running under the Local System Account, I would like to emulate this same behavior. Basically, I would like to run CMD.EXE under the Local System Account.  (By the way, it’s fair to [...]

Continue reading about Run CMD.exe as Local System Account