diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CSVCommands.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CSVCommands.cs
index 2f86c324e6..ccb4dd32f2 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CSVCommands.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CSVCommands.cs
@@ -1389,7 +1389,6 @@ namespace Microsoft.PowerShell.Commands
current.Remove(0, current.Length);
}
}
-
else if (ch == '"')
{
if (seenBeginQuote)
diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cs
index bb7a734723..38d657905a 100644
--- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cs
+++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cs
@@ -901,7 +901,6 @@ namespace Microsoft.PowerShell
break;
}
}
-
else if (MatchSwitch(switchKey, "settingsfile", "settings"))
{
// Parse setting file arg and write error
diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/Telemetry.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/Telemetry.cs
index 4548d3b814..fea8a66708 100644
--- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/Telemetry.cs
+++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/Telemetry.cs
@@ -62,7 +62,7 @@ namespace Microsoft.PowerShell
///
/// Send the telemetry
///
- private static void SendTelemetry(string eventName, Dictionarypayload)
+ private static void SendTelemetry(string eventName, Dictionary payload)
{
try
{
diff --git a/src/Microsoft.PowerShell.Security/security/AclCommands.cs b/src/Microsoft.PowerShell.Security/security/AclCommands.cs
index a6168fb258..79c63d4e42 100644
--- a/src/Microsoft.PowerShell.Security/security/AclCommands.cs
+++ b/src/Microsoft.PowerShell.Security/security/AclCommands.cs
@@ -800,7 +800,6 @@ namespace Microsoft.PowerShell.Commands
WriteError(er);
}
}
-
else
{
foreach (string p in Path)
diff --git a/src/Microsoft.PowerShell.Security/security/CertificateProvider.cs b/src/Microsoft.PowerShell.Security/security/CertificateProvider.cs
index a4286cb595..8f7df3cbb5 100644
--- a/src/Microsoft.PowerShell.Security/security/CertificateProvider.cs
+++ b/src/Microsoft.PowerShell.Security/security/CertificateProvider.cs
@@ -3180,7 +3180,7 @@ namespace Microsoft.PowerShell.Commands
// if it exists and does not contain a comma
// a comma, indicates it is not a DNS name
if(cert.Subject.StartsWith(distinguishedNamePrefix, System.StringComparison.InvariantCultureIgnoreCase) &&
- cert.Subject.IndexOf(",",System.StringComparison.InvariantCulture)==-1)
+ cert.Subject.IndexOf(",",System.StringComparison.InvariantCulture) == -1)
{
name = cert.Subject.Substring(distinguishedNamePrefix.Length);
try
diff --git a/src/Microsoft.WSMan.Management/WsManHelper.cs b/src/Microsoft.WSMan.Management/WsManHelper.cs
index fe6e1e4373..3d34373118 100644
--- a/src/Microsoft.WSMan.Management/WsManHelper.cs
+++ b/src/Microsoft.WSMan.Management/WsManHelper.cs
@@ -334,7 +334,6 @@ namespace Microsoft.WSMan.Management
_sr = new StreamReader(_fs);
strOut = _sr.ReadToEnd();
}
-
catch (ArgumentNullException e)
{
ErrorRecord er = new ErrorRecord(e, "ArgumentNullException", ErrorCategory.InvalidArgument, null);
@@ -1078,7 +1077,6 @@ namespace Microsoft.WSMan.Management
}
}
}
-
catch (IOException e)
{
diff --git a/src/System.Management.Automation/engine/COM/ComDispatch.cs b/src/System.Management.Automation/engine/COM/ComDispatch.cs
index 92d2d7d2d9..f1a1655a8e 100644
--- a/src/System.Management.Automation/engine/COM/ComDispatch.cs
+++ b/src/System.Management.Automation/engine/COM/ComDispatch.cs
@@ -7,7 +7,7 @@ using COM = System.Runtime.InteropServices.ComTypes;
namespace System.Management.Automation
{
///
- /// Summary description for IDispatch.
+ /// The IDispatch interface.
///
[Guid("00020400-0000-0000-c000-000000000046")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
diff --git a/src/System.Management.Automation/engine/ComInterop/ComRuntimeHelpers.cs b/src/System.Management.Automation/engine/ComInterop/ComRuntimeHelpers.cs
index 02ea2d76d9..75d8360987 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComRuntimeHelpers.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComRuntimeHelpers.cs
@@ -623,9 +623,9 @@ namespace System.Management.Automation.ComInterop
var attributes = new[] {
new CustomAttributeBuilder(typeof(UnverifiableCodeAttribute).GetConstructor(Type.EmptyTypes), Utils.EmptyArray