|
|
Browse by Tags
All Tags » C# » .NET
-
A few weeks ago I was writing a Linq query where I needed each items sequence number (or index) as a part of the filter expression in a Where operation. To simplify the actual problem let's say I needed to filter out only the odd items. One (wrong) way to do this would be:
int i = 0;
var filtered = input.Where(x => i++ % 2 == 1);
This ...
-
I has been a while since I wrote a post on parallel programming. Since that time a lot has happend in field of parallel programming.
Microsoft has been working hard on implementing the Parallel Extensions for .Net Framewok (PFX) and has now anounced that it will be a core part of the next version of the .Net Framework (right into ...
-
In this third part I'm going to show a demo of a powershell provider I created in dead moment on a Thursday evening (grin). This post is part of a series consisting of currently four parts (not all published, but that doesn't matter).
The first two parts can be found here:
Part 1 – Introduction to PowerShell customization
Part ...
-
This is the second part of the series on customizing Windows PowerShell. This time I'm going to explain how to create your own commandlets. Commandlets are a very powerful way to extend the functionality of Windows PowerShell, it's also one of the most common scenario's people will use for extending PowerShell.
Commandlet basics
Every non-system ...
-
9 April A colleague and I held a presentation about Windows PowerShell. We discussed how to use it and how you can customize PowerShell. I didn’t quite have enough time to explain the whole deal on customization, so I’m going to do that in a series of posts.
The preliminary table of contents for the series looks like this: Part ...
-
Introduction
WPF offers some rather good stuff when it comes to applying validation to binding expressions. However it isn't complete in my opinion and could use some kind of extension to make it even easier and more effective to use in an application.
There are a couple of things I noticed when working with validation in WPF:
It is not ...
-
Again I have too much time on my hands so I started looking for new frameworks to take a peek at. Normally I turn to Microsoft for new frameworks. However I thought that it would be a good idea to look for a different kind of challenge this time.
CSLA is a framework for business objects, it offers n-level undo and transaction support. It is ...
-
In the project I am currently working on we use a domain model with a quite deep nested structure of classes, code like the following is quite common.
// do something with the Adress
Console.Writeline(Contract.Parties.Client.Adress.Street);
The problem with this is that not all Contacts have a related Parties object and if we do have a ...
-
Visual Studio comes with snippets for VB 2005, but C# seems to be missing. Luckely Microsoft published a set on MSDN that you can download to make the snippets from VB available in C#. Heck, they even come with a license that allows developers to change the contents of the snippets. Personally I use snippets whenever I can, it makes creating code ...
-
Dynamic languages are getting more popular these days and I'm one of those guys that likes to try new things so I jumped on the dynamic language wagon. One of the things I'm looking for is where it is actually faster than C# (Not only in the language constructs, but with engine startup as well). The fact that I'm looking where it is ...
|
|
|