Last active
January 6, 2018 09:31
-
-
Save Ibro/4b1787437dc0ec55c16764a68f3bad4b to your computer and use it in GitHub Desktop.
C# 7.1 New Features - https://codingblast.com/csharp-7-1-new-features/
This file contains 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; | |
namespace CSharp71Features | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
DoSomething(); | |
} | |
static void DoSomething(string text = default(string)) | |
{ | |
int myNumber = default(int); | |
Console.WriteLine(myNumber); | |
Console.WriteLine($"text:{text}"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment