From 6da5394ac79104219e9c4548c3c053b604234b84 Mon Sep 17 00:00:00 2001 From: Sam Macpherson Date: Mon, 16 Oct 2017 16:40:53 +1000 Subject: [PATCH] use C#7's 'out variables' feature --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 3e836eb..57ee4b4 100644 --- a/README.md +++ b/README.md @@ -52,8 +52,7 @@ public void Example1() Option option = 1; // Most Performant - int value; - if (option.TryGetValue(out value)) + if (option.TryGetValue(out int value)) // C# 7 out variables { // Do something with the value Console.WriteLine(value);