Friendly And Helpful Community Of Developers

Skip to content
Menu
  • Home

Category: C#

C#Posted onOctober 14, 2021October 15, 2021

Dependency injection in C# – a simple introduction

So, you have heard of Dependency injection (DI) and Inversion of Control (IoC) but are having a hard time grasping the concept? Well you’re not…

Read More
C#Posted onOctober 13, 2021October 15, 2021

Lambda expressions, delegates, predicates & closures in C#

Lambda expressions, delegates, predicates and closures – complicated sounding terms that in fact are easy to grasp once you actually understand what they mean and…

Read More
C#Posted onOctober 12, 2021October 15, 2021

10 features in C# that you really should learn (and use!)

1) async / await Use the async / await-pattern to allow unblocking of the UI / current thread when execution blocking operations. The async /…

Read More
C#Posted onOctober 11, 2021October 15, 2021

Change / Set private property with reflection in C#

A problem that can occur when creating unit tests is that you’ve got a private set:er for a property that you need to write data…

Read More
C#Posted onOctober 10, 2021October 15, 2021

Introduction to unit testing in C#

Once you’ve started working with unit testing, chances are that you never want to work without it again. I find that the biggest benefit is…

Read More
C#Posted onOctober 9, 2021October 15, 2021

Enums in C# – Creating, looping, casting and counting

A few features of the enum concept in C#… Create enum public enum Names { Robert, //Will get 0 as value Julia, //Will get 1…

Read More
C#Posted onOctober 8, 2021October 15, 2021

Fix This async method lacks await operator warning in C#

Let’s say that you need to implement an interface that contains an (async) method returning Task<T>: public interface IGetInt { Task<int> GetIntAsync(); //… } But…

Read More
C#Posted onOctober 7, 2021October 15, 2021

Exception filters in C#

Exception filters was added in C# 6 and is a nice feature that lets you decide weather to actually catch an exception or not. The…

Read More
C#Posted onOctober 6, 2021October 15, 2021

Flags / bit fields as Enum in C#

Enum in C# is a powerful construct. And besides its standard use It can also be used as a bit field / flags. The purpose…

Read More

Recent Posts

  • ComeOnMobile App for Comfortable Betting
  • All About Relocation Assistance
  • Dependency injection in C# – a simple introduction
  • Lambda expressions, delegates, predicates & closures in C#
  • 10 features in C# that you really should learn (and use!)

Categories

  • C#
  • Uncategorized