Taking Baby Steps with ScriptCS
May 31, 2013I’ve been following the ScriptCS project with great interest over the last couple of months. As you may know by now, I’ve been searching for a more lightweight .NET development ...
Read more ...I’ve been following the ScriptCS project with great interest over the last couple of months. As you may know by now, I’ve been searching for a more lightweight .NET development ...
Read more ...I noticed this blog post from Scott Hanselman the other day about Visual Studio Express 2012 for Windows Desktop. This post included a screenshot from the installation program. ...
Read more ...Earlier this week, I ran into an issue while using the dynamic keyword in C#. I learned from C# in Depth that there are a couple of restrictions with dynamic, most notably when ...
Read more ...Last week I finally managed to hunt down and resolve a bug that I had been chasing for quite some time. A couple of years ago I built an ASP.NET web service that makes use of a ...
Read more ...In a previous blog post I showed a basic example of how to use the Delegate.CreateDelegate() method as an alternative to the slow MethodInfo.Invoke() for dynamically invoking a ...
Read more ...IKVM.NET is something I’ve been playing with for a while now, but seeing this awesome trailer today reminded me that I should write a post about it. I always considered Java t...
Read more ...Don’t you just hate it when a class in the .NET Framework or another third-party library or framework provides that particular feature you’re looking for only to realize that th...
Read more ...Peter Cosemans, who is one of my colleagues, found a nice way to integrate ELMAH for a WCF service. ELMAH is an error logging facility for logging unhandled exceptions particula...
Read more ...A typical way for invoking a non-public method of a class is by using reflection. This can come in handy in a number of cases. One typical scenario that comes to mind is when th...
Read more ...A while ago, I submitted a patch to AutoMapper that added basic support for mapping data from an IDataReader/IDataRecord to an object. For those of us who don't have the luxury ...
Read more ...I've been learning a bit more about Service-Oriented Architecture (SOA) and Event-Drive Architecture (EDA) over the last couple of months. Something that kept coming back in the...
Read more ...I just wanted to share my attempt for implementing a generic base class for Value Objects, popularized by Eric Evans and the Domain-Driven Design community. I must say that I go...
Read more ...Today I found myself writing the following code: private void DoSomething(String userName) { using(var userEntry = GetUserEntryFor(userName)) if(CouldBeFound(userEn...
Read more ...About a year ago, I wrote a post about Directory Programming with System.DirectoryServices. AccountManagement. I've been using the AccountManagement API of the .NET 3.5 framewor...
Read more ...When using Visual Studio 2008, it is possible to use most of the new language additions of C# 3.0 in a .NET 2.0 project. This because the C# 3.0 compiler is used for both .NET 2...
Read more ...Creating a versionable ASMX Web Service is something that was really hard to do in .NET 1.1, mostly because it involved a lot of work and discipline. Creating versionable servic...
Read more ...I’ve been playing around with StructureMap for the last couple of days and I must say that I’m really impressed. I had no troubles in quickly getting up to speed with this amazi...
Read more ...We ran into an issue last week when we were deploying a WCF service on an IIS web site which had multiple IIS bindings. It manifested itself by throwing the following exception:...
Read more ...In my previous post, I outlined an issue that I had with Castle Windsor for configuring multiple chains of responsibility. I want to have different ProcessConsumer classes that ...
Read more ...A couple of months ago, I applied the Chain of Responsibility pattern for the very first time. I've never encountered a scenario before where applying this pattern would be a va...
Read more ...I've been playing with the Visual Studio 2010 CTP bits, and I tried to see what named and optional parameters in C# 4.0 can bring to the table. Although they are minor language ...
Read more ...As you might have noticed from my previous post, I'm having a look at some of the stuff on my ever growing cool-tools-and-technologies-I-have-to-grock list. The next one that wa...
Read more ...A while ago, I wrote this post about how to integrate Castle Windsor and NHibernate with WCF. Last weekend, I used the WCF integration facility of Castle Windsor to accomplish p...
Read more ...Up until now, we were using the NHibernate facility of Castle Windsor for managing our NHibernate sessions in WCF. But, we want to have a session-per-request approach as one wou...
Read more ...Today I spent some time (thank God no more than 15 minutes) tracking down a WCF issue from hell. Every time I made a call to the service I got the following exception: System.Se...
Read more ...While I was reading The .NET Developer's Guide to Directory Services Programming yesterday, I came across this passage called Close or Dispose? There's a class called DirectoryE...
Read more ...Last months MSDN Magazine contains a very interesting article that titles Managing Directory Security Principals in the .NET Framework 3.5. Its a nice introduction to the classe...
Read more ...This in one of my pet peeves. Its simply none negotiable! I still don't understand why it can be turned off. Heck, I don't understand why its not turned on by default. I ...
Read more ...Alex Henderson picked up on my "Why O Why" post in his take on the Pluggable IoC in WPF Composite & Enterprise Library v.Next. I still believe that an IoC Application Block...
Read more ...Glenn Block announced on the ALT.NET Yahoo Group that the P&P team is developing a new dependency injection framework. To say it with the words of Captain Alberto Bertorelli...
Read more ...In this post I put out some code for checking method arguments. I changed it somewhat regarding value types:public void DoSomethingMeaningfull(Int32 someNumber) { // Throws Ar...
Read more ...Something that was bothering me for a while now was writing the following piece of code over and over again: public void DoSomething(Request request) { if(null == request) ...
Read more ...Earlier this week, I've been listening to the .NET Rocks podcast, John Lam on the DLR. I must admit, I'm looking forward to IronRuby. Now, somewhere half way the show, Carl Fra...
Read more ...After a code review session earlier this week, I was wondering if I am the only one who uses the FCL type names (e.g. Int32) instead of their language-agnostic counterparts (e.g...
Read more ...In my journey to explore the Windows Communication Foundation, I came across an issue that confused me at first but actually made some sense after spending half a day figuring t...
Read more ...A very useful subject today on the Visual Studio Code Analysis Team Blog called: What exception should I throw instead of the reserved exceptions that DoNotRaiseReservedExceptio...
Read more ...Today I was working my way through migrating a web service application from .NET 1.1 to .NET 2.0. One of the things that I came across was the new architecture of the System.Con...
Read more ...While the blogosphere is full of the first CTP of WPF/E, I'm want to mention something about an old technology, namely WCF. The nice people of IDesign already published their C#...
Read more ...The September 2006 issue of MSDN magazine has a great article about the new features in System.Xml 2.0. I used (and I am still using) this part of the .NET Framework a lot and h...
Read more ...You should definitely read this fine article about exception handling. When it comes to exception handling, there is still a lot of confusion amongst us, developers. With all th...
Read more ...Finally, finally, finally, … Debug.Assert now works with ASP.NET 2.0. You have to love those little improvements they did for .NET 2.0. When using version 1.1 of the .NET framew...
Read more ...Back in the good old Win32 days it was considered a best practice to rebase all your DLLs. Every executable and DLL has a preferred base address. This base address is the memory...
Read more ...In Visual Studio 2005, you now have the ability to use the pdb-only debug information option. This underestimated debug option is available for the command- line C# compiler, bu...
Read more ...The .NET 1.1 framework internally uses the IXmlSerializable interface for custom XML serialisation of certain classes. In fact the only class that I can come up with is the Data...
Read more ...June 28, 2023
April 12, 2023
February 1, 2023
June 15, 2022
February 2, 2022
The opinions expressed on this blog are my own personal opinions. These do NOT represent anyone else’s view on the world in any way whatsoever.
Thank you for visiting my website. I’m a professional software developer since Y2K. A blogger since Y2K+5. Author of Writing Maintainable Unit Tests. Provider of training and coaching in XP practices. Curator of the Awesome Talks list. Thinking and learning about all kinds of technologies since forever.
(+32) 496 38 00 82
info @ principal-it .be