C# (51)
Apps, games & projects
NotifyPropertyChanged.Verifier
A fluent xUnit extension for testing INotifyPropertyChanged implementations in view models. A .NET Standard 2.0 library for .NET Core and the full framework.
FermiContainer
A small C# IoC container. Register interfaces and implementations, and let constructor injection resolve dependencies. No attributes or XML configuration.
Async Method Caller
Call methods asynchronously and continue afterwards when you cannot use async and await. Easy to understand and test, and useful in view models.
2020
Functional ... C#? A Bekk Christmas post
C# 9 introduces records, an immutable class with all the needed convenience methods generated by the compiler!
Wishing you all a very Bekk Christmas
Bekk is sharing 10 articles and a podcast episode every day until Christmas Eve!
Introducing .NET Multi-platform App UI
Microsoft has both understood the power of the MVU-pattern and unveiled a new unified way of building cross-platform native frontends from a single codebase.
Moderne mobilutvikling med .Net 5 og Xamarin
Talk at Bekk conference about modern mobile development with .Net 5 and Xamarin.
2019
Testing ViewModels using INotifyPropertyChanged verifier
A fluent extension of xUnit for testing implementations of INotifyPropertyChanged in ViewModels.
VTable setup of type LightInject.ServiceContainer failed
When using full linking in Xamarin apps, as you should, remember to preserve the classes and assemblies needed for the app to work.
Cross-platform mobile development using C# and Xamarin Forms
The goal of the talk was to show how easy it is to create a cross-platform app using modern tooling.
Cross-platform mobile development using C# and Xamarin Forms
University lecture.
Xamarin Forms: From Duplo to Lego
Conference talk.
Cross-platform mobile development using C# and Xamarin Forms
Conference talk.
Cross-platform mobile development using C# and Xamarin Forms
University lecture.
2018
Error RZ3007, Targeted tag name cannot be null or whitespace
Updating ASP.Net Core 2.1 I had to remove
.dockerignore is your friend - remember to use it
In a .dockerignore, you can specify ignore rules and exceptions from these rules for files and folder. These won’t be included in the build context.
Run an ASP.Net app in Docker using a Multi-Stage Dockerfile
Using a multi-stage Dockerfile, building and testing also happen in a container. Thus only the Docker tools are needed to build and test the project.
Missing Assembly in App Dependencies Manifest
The nuget packages now targeted different versions of the runtime and the container did not contain them all.
Get milliseconds from Unix epoch in C#
A method in C# to get the number of milliseconds since the start of Unix time.
Split a C# list or array into multiple parts
I needed a method in C# to split a list or an array into multiple parts for batch processing. This is the method I came up with.
DIPS Slack Bot: Slack-bot i C#
Conference talk.
2017
Comics Downloader - simple script for downloading comics
Comics Downloader is a dotnet script that will download comics from comics.io.
Xamarin.iOS - failed to load ObjCRuntime.Runtime
Yet another fatal Xamarin.iOS error that can be fixed by cleaning and rebuilding the app.
Testing Azure Blob Storage using xUnit
How to run tests dependant on Azure Blob Storage using xUnit.net both locally and on the build server.
Two Xamarin.iOS build errors - improve the product
If you have the choice between improving your product or your documentation, always improve the product.
Profilebot - the profile checking Slackbot for you!
Simple Slackbot for validating user profiles.
2016
Scriptcs IntelliSense in Visual Studio Code
Scriptcs IntelliSense in Visual Studio Code
Compiled Xamarin Forms XAML - Specified cast is not valid
Compiled Xamarin Forms XAML - Specified cast is not valid
2015
Cross platform REST-service with .Net, Vagrant og Docker
Simple cross platform REST-service with .Net, Vagrant og Docker
On structs: an underutilized part of C#
By using struct for small structures, we achieve less memory usage, better memory locality and fewer garbage collections.
What’s New in C# 6 and Visual Basic 14
What’s New in C# 6 and Visual Basic 14
.Net Roslyn: Analyzers & Code-Aware Libraries
.Net Compiler Platform (“Roslyn”) - Analyzers and the Rise of Code-Aware Libraries
What’s New in XAML for Universal Windows Apps
What’s New in XAML for Universal Windows Apps
Debugger Tips for .Net Devs with Visual Studio 2015
Debugger Tips and Tricks for .Net Developers with Microsoft Visual Studio 2015
Exploring New Features: A Lap Around .Net 2015
.Net 2015 brings a host of welcome improvements.
Tiling a sprite texture in SpriteKit
Tiling a sprite texture in SpriteKit
Exploring Gradient Colors on iOS
I needed a way to get a color between two colors given a ratio.
2014
From UIAlertView to UIAlertController using Xamarin
From UIAlertView to UIAlertController using Xamarin and async await
New features in FermiContainer 1.1
New features in FermiContainer 1.1
FermiContainer - an IoC container for the rest of us
Introducing FermiContainer - an IoC container for the rest of us
Windows Forms + CefSharp = grey content?
Windows Forms + CefSharp = grey content?
Book Scanner - iOS app for buying physical books digitally
Book Scanner (iOS), scan physical books and buy them as ebooks!
2013
Async Method Caller - Easy async Without await
Async Method Caller - Easy async Without await
The little test that could … not
The little test that could … not
Moq: Mock a method from an interface
Mock a method from an interface using Moq
2012
Six years of WPF; what's changed?
Paul Stovell shares his experiences of six years of using WPF and is not happy with its evolution.
2011
Saving a configuration in C# using XDocument
Saving a configuration in C#
Error loading mixed mode assembly
Error loading mixed mode assembly.
2010
Optimizing Performance: Leveraging WiX with Ngen for Profit
WiX + hard work + Ngen = Profit
2009
Defensiv programmering i C#
Conference talk.