dotnet falcon

Blogging about .NET and software development - from my bird's eye view

dotNet Falcon update

dotNet Falcon update

Mar 26, 2018
You might have noticed that in the last few months I haven't put out as many posts as I usually do. Well, here's a post explaining why (or rather, trying to make some excuses). I am working on a couple of things (stay tuned for other
Iterating through dictionaries the better way

Iterating through dictionaries the better way

Mar 24, 2018
Using the right collection type at the right place is a challenging task. In my experience, most people just use List<T or Dictionary<TKey,TValue> most of the time, without thinking about other possibilities. Now that's not to say that these two are not
Adding bytes in C#

Adding bytes in C#

Nov 20, 2017
What happens if you run this little piece of code? More specifically, what's the type of the variable 'x'? byte b1=1; byte b2=1; var x=b1+b2; Console.WriteLine(x.GetType()); Well, if you guessed byte, you were wrong. This will actually result in
Extending Linq2Objects GroupBy

Extending Linq2Objects GroupBy

Nov 15, 2017
GroupBy() is one of the most versatile and underrated Linq standard query operator there is. You probably know the "base" version, which takes in a single parameter in the form of an expression (actually, Func, but that's not the point): public static IEnumerable<IGrouping<
Implementing interface with auto properties

Implementing interface with auto properties

Nov 10, 2017
A cool feature in VS2017: when implementing an interface, you can now use auto properties. Here's what I'm talking about: let's say you have an interface, and you have properties in it. Something like this: public interface IInterface { int MyProperty { get; set; } } Then, you