Skip to content

Instantly share code, notes, and snippets.

@AnthonyGiretti
Created June 17, 2020 03:04
Show Gist options
  • Save AnthonyGiretti/294664c5cd5b7e879cb9fab905fa199e to your computer and use it in GitHub Desktop.
Save AnthonyGiretti/294664c5cd5b7e879cb9fab905fa199e to your computer and use it in GitHub Desktop.
C# 9 position construction and deconstruction
using System;
using CSharp9Demo.Models
namespace CSharp9Demo
{
class Program
{
static void Main(string[] args)
{
var product = new Product("VideoGame", 1);
var (name, categoryId) = product;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment