How do I run a WCF service inside an MVC website OR Do you make good use of Linq?

by Mikael Henriksson 30. October 2010 18:22
The goal of this post It took me some time to figure out how to have WCF services running inside an MVC website so I want to show you that but at the same time I want to show a smart way you can use Linq to remove some unnecessary code and at the same time make the code more readable and clear. ... [More]

Tags: , ,

MVC | WCF | LINQ

How I remove duplicates from something that implements IEnumerable<T>

by Mikael Henriksson 5. June 2010 18:32
I admit it does not work for everything and only in C# 4 but it’s a useful extension none the less. public static IEnumerable<T> RemoveDuplicates<T>(this IEnumerable<T> items) { return new HashSet<T>(items); } The hash set does not allow duplicates!

Tags: ,

LINQ | C#

Using extension methods to handle Xml

by Mikael Henriksson 16. February 2010 08:42
I have created a few very useful extension methods for handling the System.Xml.Linq namespace that I use all the time. I’ve had positive feedback on this before (and it showed up in this post) and now I had to create a couple of extra extensions just to make my life even easier. The way I work... [More]

Tags: , ,

C# | LINQ | Xml

About the author

Life architect specialized in programming

Month List

Widget Twitter not found.

Root element is missing.X