Skip to content

Instantly share code, notes, and snippets.

Dmitry Zinchenko DmitryZinchenko

View GitHub Profile
@DmitryZinchenko
DmitryZinchenko / 1. Program.cs
Created Apr 6, 2016
C# 6.0 Program and IL (Null-Conditional Operators in C# 6.0 blog post)
View 1. Program.cs
namespace CS6
{
class Program
{
static void Main(string[] args)
{
var car = new Car();
int currentSpeed = GetCurrentSpeed(car);
}
@DmitryZinchenko
DmitryZinchenko / 1. Program.cs
Last active Apr 6, 2016
C# 5.0 Program and IL (Null-Conditional Operators in C# 6.0 blog post)
View 1. Program.cs
namespace CS5
{
class Program
{
static void Main(string[] args)
{
var car = new Car();
int currentSpeed = GetCurrentSpeed(car);
}
View Middleware.cs
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Owin;
namespace Middlewares
{
using AppFunc = Func<IDictionary<string, object>, Task>;
public class Startup
You can’t perform that action at this time.