diff options
author | Milo Gilad <milogaccnts@gmail.com> | 2017-08-25 10:18:31 -0400 |
---|---|---|
committer | Milo Gilad <milogaccnts@gmail.com> | 2017-08-25 10:18:31 -0400 |
commit | a6c3a64a4c897a1f7e7acfbfe6318866317770ad (patch) | |
tree | 28b0d35aaf2cdc3e968e182f1de4d5c5e596a970 /csharp.html.markdown | |
parent | 1abae4b25de43e05df3ba225986997bc72eb3f8a (diff) | |
parent | bce21489d8d7e3a3f3d4ede2154dba082647296e (diff) |
Merge branch 'master' of github.com:adambard/learnxinyminutes-docs
Diffstat (limited to 'csharp.html.markdown')
-rw-r--r-- | csharp.html.markdown | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/csharp.html.markdown b/csharp.html.markdown index 78f9db34..963f38f4 100644 --- a/csharp.html.markdown +++ b/csharp.html.markdown @@ -1095,6 +1095,28 @@ namespace Learning.More.CSharp } } } + +using System; +namespace Csharp7 +{ + //New C# 7 Feature + //Install Microsoft.Net.Compilers Latest from Nuget + //Install System.ValueTuple Latest from Nuget + class Program + { + static void Main(string[] args) + { + //Type 1 Declaration + (string FirstName, string LastName) names1 = ("Peter", "Parker"); + Console.WriteLine(names1.FirstName); + + //Type 2 Declaration + var names2 = (First:"Peter", Last:"Parker"); + Console.WriteLine(names2.Last); + } + } +} + ``` ## Topics Not Covered |