From 32c8669e10a0358911e319b0643b09ef24001db8 Mon Sep 17 00:00:00 2001 From: Nikolche Kolev Date: Wed, 11 Mar 2020 23:19:13 -0700 Subject: [PATCH 1/2] Update coding-guidelines.md --- docs/coding-guidelines.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/coding-guidelines.md b/docs/coding-guidelines.md index 877ef76085d..32fb053efe2 100644 --- a/docs/coding-guidelines.md +++ b/docs/coding-guidelines.md @@ -57,6 +57,8 @@ For example the following are correct: string fruit = null; // can't use "var" because the type isn't known (though you could do (string)null, don't!) const string expectedName = "name"; // can't use "var" with const FruitFlavor flavor = fruit.GetFlavor(); + var nugetVersion = NuGetVersion.Parse("1.0.0"); + var solutionManager = ComponentModel.GetService(); ``` The following are incorrect: From cf481a05db8783ca7b2ade12236b3449ceb1fe18 Mon Sep 17 00:00:00 2001 From: Nikolche Kolev Date: Fri, 13 Mar 2020 11:06:07 -0700 Subject: [PATCH 2/2] Update coding-guidelines.md --- docs/coding-guidelines.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/coding-guidelines.md b/docs/coding-guidelines.md index 32fb053efe2..b619c6d5c41 100644 --- a/docs/coding-guidelines.md +++ b/docs/coding-guidelines.md @@ -58,7 +58,6 @@ For example the following are correct: const string expectedName = "name"; // can't use "var" with const FruitFlavor flavor = fruit.GetFlavor(); var nugetVersion = NuGetVersion.Parse("1.0.0"); - var solutionManager = ComponentModel.GetService(); ``` The following are incorrect: