Repository of all trivial
  • Home
  • About Me
Subscribe
Tagged

C#

A collection of 4 posts

Func and Action delegates
C#

Func and Action delegates

The post contains information on the differences of Func/Action delegates and custom delegates. Hopefully it will give you enough code examples to make you a master in their usage.

  • Sturla Þorvaldsson
Sturla Þorvaldsson May 21, 2019 • 13 min read
The Dependency Injection Jungle
C#

The Dependency Injection Jungle

This is a short overview of IoC (inversion of control), DI (dependency injection) and DI containers I was asked to do for my colleagues at work. In this post there is no code at all but lots of links and explanations.

  • Sturla Þorvaldsson
Sturla Þorvaldsson Oct 23, 2018 • 5 min read
Simple use of Events
C#

Simple use of Events

I'm working a lot with events and delegate at work these days so I thought I should take a better look at them and try to explain a simple usage of events as best I can

  • Sturla Þorvaldsson
Sturla Þorvaldsson Sep 25, 2018 • 5 min read
Safe casting with is
Tips&Tricks

Safe casting with is

Just a short post on some pattern matching in C# 7 that my coworker pointed out to make code cleaner and easier to read. I had looked at pattern matching but not really used it exept in a switch statement.

  • Sturla Þorvaldsson
Sturla Þorvaldsson Jun 24, 2018 • 1 min read
Repository of all trivial © 2023
Powered by Ghost