Impersonation for data access with LogonUser
Using the example code from URL below and a little modification....
View ArticleThread safe C# logging class using the Singleton Pattern
using System.Web; using System.IO; using System.Configuration; namespace Logger { /// <summary> /// Summary description for Logger. /// </summary> public class Logger { private static...
View ArticleCode 39 Mod 43 barcode checkdigit function
Have to find the original code, the code is wrong. //pass in a string and returns string with check digit public string getCode39Mod43(string s) { int sum = 0; string temps = s.ToUpper(); for (int i =...
View ArticleStored Procedure Helper Functions
public SqlDataReader executeSPHelper(string cmdStr, ArrayList cmdParams) { SqlDataReader rd = null; SqlCommand sqlCmd = null; try { sqlCmd = new SqlCommand(cmdStr, yourConnection); sqlCmd.CommandType...
View ArticleRegular Expression Helper Class
using System; using System.Text.RegularExpressions; namespace RickSchott.Util { /// /// Summary description for RegExValidators. /// public class RegExValidators { public const string regPhoneNumber =...
View ArticleBreakpoint Workspaces 1.0 Beta….again :)
I wrote this a long time ago and decided to dig it back up. It only handles regular breakpoints, no conditionals…etc Breakpoint Workspaces manages breakpoint groups in an external text file so that...
View ArticleProject Euler – IProblemBase
I have noticed people searching for my IProblemBase class. There is really nothing to it to be honest. I just have all my Problem[n] classes implement it so that my test harness can call them easily....
View Article