What’s cool about Code Snippets?

Code snippets are pre-created pieces of code, and Visual Studio supports two kinds of them. Expanding code snippets and surrounding code snippets. You can get started with code snippets right away, since Visual Studio ships with lots of them.

So, how do they work? Well, the expanding code snippets are the easiest to use; you select a snippet by typing in a couple of letters in the editor, and press TAB once or twice to get the code. Continue reading “What’s cool about Code Snippets?”

More parsing textfiles with LINQ

In a previous article, I described how to use LINQ when parsing a textfile.

Following that train of thoughts further, I found a more elegant way of splitting the lines from the file into columns. Creating extension methods on top of IEnumerable<string> seems like a good idea! Something that could be used like this for a comma-separated file:

from columns in reader.AsEnumerable().AsDelimited(delimiter)
select ...

Continue reading “More parsing textfiles with LINQ”

Hello World!

“Arjan calling world, Arjan calling world!
World, can you read me?”

Welcome to my blog!

A big thanks to Jarle for helping me set this up. Now it’s up to me to actually fill this space with something interesting.