background preloader

Refactoring and Advanced Coding Tricks and Concepts

Facebook Twitter

Little-known Operators in C# 10 C# Shorthands that improve productivity. If you're new here, you may want to subscribe to my RSS feed.

10 C# Shorthands that improve productivity

Thanks for visiting! One of the best things about C# is that as the language and libraries expand thought is put into keeping things readable. Explaining What Action<> And Func<> Are « Making the Complex Simple. In C#, Action and Func are extremely useful tools for reducing duplication in code and decreasing coupling.

Explaining What Action<> And Func<> Are « Making the Complex Simple

It is a shame that many developers shy away from them because they don’t really understand them. Adding Action and Func to your toolbox is a very important step in improving your C# code. It’s not really that hard to understand what they do and how to use them, it just takes a little patience… A simple way of thinking about Action<> Most of us are pretty familiar with finding sections of repeated code, pulling that code out into a method and making that method take parameters to represent the differences. Elegant Code.

LINQ

Lambda Expressions.