Skip to content

Instantly share code, notes, and snippets.

View seveves's full-sized avatar
:octocat:
always dark mode on

Severin seveves

:octocat:
always dark mode on
  • Germany, Stuttgart
View GitHub Profile
@Virtlink
Virtlink / TypeSwitch.cs
Last active March 9, 2019 17:11
Switch on type. The order of the Case() methods is important.
using System;
namespace Virtlink
{
/// <summary>
/// Executes a particular piece of code based on the type of the argument.
/// </summary>
/// <example>
/// Usage example:
/// <code>