ISerialized .Net, C#, Scrum and agile software development

13Apr/100

Unit testing Caliburn applications in NUnit

Posted by Pål Eie

This is part three in my series on Caliburn, if you haven't please read Part 1: Getting started with Caliburn and Part 2: Multiple Views on one ViewModel.

In this post I will look into the unit testing features of Caliburn and try to give a quick introduction to the essentials of what you need to know to write a couple of small unit tests in NUnit. The documentations on caliburn.codeplex.com on unit testing is fairly good, so I will only try to fill in some missing pieces and give a quick start guide to unit testing Caliburn. If or when you bump into problems with the simple setup described here, it's time to move over to more detailed documentation available in both the documentation and discussion forum on Codeplex.

9Apr/102

Optional parameters in C# 4.0

Posted by Pål Eie

A while back I blogged about the great features of the Dynamic Language Runtime introduced in .Net 4.0. Today I will look into another great feature introduced in C# 4.0, namely the new  named and optional parameters.

If you are familiar with C++, you have probably used optional parameters earlier, but C# has missed this feature until now. As a work around we had to use overloaded methods, but in the concept of clean code, I'd rather prefer to use optional parameters!

9Apr/100

Splash screen in WPF

Posted by Pål Eie

Remember the time when adding a splash screen to application was a hassel? In WPF this is now extremely simply, follow these few steps, and you splash screen is available in your WPF application!

11Mar/103

Converting from Blogger to WordPress

Posted by Pål Eie

This week I started the hard shift from my old Blogger blog to my new WordPress blog on my new domain ISerialized.com. There are a couple of aspects of such a shift that makes this a hard decision to do:
  • Allot of hard work
  • Leaving the old familiar Blogger tool
  • Learning WordPress
  • Trying to convert my old Feedburner readers to my new domain
  • Making the shift without too much traffic loss

Luckily most of my traffic are from referring sites, so I guess with a little work and a couple of emails, I could redirect much of the traffic over to ISerialized.com. Beyond the statistical facts, what are my lessons learned from these last couple of days?!

20Feb/103

The is keyword: Yet another hidden treasure of C#

Posted by Pål Eie

A while back i blogged about the yield keyword and called it a hidden treasure of C# as I seldom see it used, and many senior developers never use it! Today, I came across a similar one,  namely the is-keyword. And frankly, I had actually forgotten about myself, even though I have used it in the past on several occasions.

2Feb/101

Dynamic Language Runtime in .Net 4.0

Posted by Pål Eie

The upcoming .Net 4.0 contains many new and exciting features, in this blog post I will describe some of the new features of the DLR including the dynamic keyword.

To quote MSDN:

The dynamic language runtime (DLR) is a runtime environment that adds a set of services for dynamic languages to the common language runtime (CLR). The DLR makes it easier to develop dynamic languages to run on the .NET Framework and to add dynamic features to statically typed languages.

The architecture of the DLR in combination with the Common Language Runtime CLR and C#, IronPython, IronRuby and Visual Basic is visualized through this illustration:

As seen from the illustration, the DLR adds three new and important features to the CLR:

27Jan/101

Why use Custom Control instead of User Control in WPF?

Posted by Pål Eie

When I first started experimenting with WPF I was quite confused with the new custom control introduced in WPF. I did a quick Google search but never got the full understanding of the difference, but I read somewhere that in most cases a custom control was not necessary, so I just focused on the regular user control back then.