Skip to content

Instantly share code, notes, and snippets.

public static class MapUseExtensions
{
public static IApplicationBuilder MapUse(this IApplicationBuilder app, PathString pathMatch, Action<IApplicationBuilder> configuration)
{
if (pathMatch.HasValue && pathMatch.Value.EndsWith("/", StringComparison.Ordinal))
{
throw new ArgumentException("The path must not end with a '/'", nameof(pathMatch));
}
// create branch
@avanderhoorn
avanderhoorn / ProxyMethodEmitterTest.cs
Created October 8, 2015 18:43
Testing edge cases for casing of params/properties
public class ProxyMethodEmitterTest
{
public class TargetClass
{
public void TargetMethod(string name, int age)
{
Name = name;
Age = age;
}
@avanderhoorn
avanderhoorn / dark.tcss
Last active December 4, 2017 14:46
CSS Modules Themes using CSS Variables
:root {
--alt-color: #111;
--main-color: #000;
--status-bar-background-color: #222;
--status-bar-font-color: #333;
}