C# 7.1 New Features - https://codingblast.com/csharp-7-1-new-features/
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