Posted by Jon on 2009/04/16
A nice way to develop sevices is to start your project with an ordinary console application. Within the console application you can swith input arguments. If there are no input arguments you can start the service and if there is for example “/test” you could do some processing or debug into some code. Some example [...]
Posted by Jon on 2009/02/06
Lately I have been running in some trouble with Response encodings. I always forget how I solved this kind of things last time when I run into them so I’ll put it here. The scenario is that we had some problems with swedish (å, ä, ö) turning into junk when saving a textfile. First I [...]
Posted by Jon on 2009/01/27
At first glance extension methods looked very appealing to me. The ability to do something like this look very neat at first glance. using System.Text.RegularExpressions; namespace Gyllensward.Examples.Extensions { public static class StringExtensions { public static bool IsValidEmail(this string email) { return Regex.IsMatch(email, @”…”); } } } string email = “jon@something.org”; bool isValidEmail = email.IsValidEmail(); But [...]