Created
June 17, 2020 03:04
-
-
Save AnthonyGiretti/294664c5cd5b7e879cb9fab905fa199e to your computer and use it in GitHub Desktop.
C# 9 position construction and deconstruction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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