Skip to content

Instantly share code, notes, and snippets.

View DmitryZinchenko's full-sized avatar

Dmitry Zinchenko DmitryZinchenko

View GitHub Profile
@DmitryZinchenko
DmitryZinchenko / 1. Program.cs
Created April 6, 2016 03:47
C# 6.0 Program and IL (Null-Conditional Operators in C# 6.0 blog post)
namespace CS6
{
class Program
{
static void Main(string[] args)
{
var car = new Car();
int currentSpeed = GetCurrentSpeed(car);
}
@DmitryZinchenko
DmitryZinchenko / 1. Program.cs
Last active April 6, 2016 03:49
C# 5.0 Program and IL (Null-Conditional Operators in C# 6.0 blog post)
namespace CS5
{
class Program
{
static void Main(string[] args)
{
var car = new Car();
int currentSpeed = GetCurrentSpeed(car);
}
@DmitryZinchenko
DmitryZinchenko / Middleware.cs
Created April 6, 2016 01:34
OWIN Middleware
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Owin;
namespace Middlewares
{
using AppFunc = Func<IDictionary<string, object>, Task>;
public class Startup