EventLog writing class

Meh, that previous post was kind of too simple etc, so thought I’d wrap up the logic in a nice class here you go. It ccouldn’t be easier to call one example to write exceptions is [codesyntax lang=”csharp”]...

Quick way to write to the event log from your C# applications

Namespace to import [codesyntax lang=”csharp”] using System.Diagnostics; [/codesyntax] Code to write to the application log, sure this is super simple but sometimes that’s all you need ;) [codesyntax lang=”csharp”] const string sSource =...

Nice C# class for ADO.net databinding

Nice class with a couple of methods to handle execution of a stored procedure with an array of parameters or a regular query and return a dataset object, all you need do is pass in the connection string when creating the connection. [codesyntax...