diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimAsyncOperation.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimAsyncOperation.cs
index 72bd7c150b..1db9132ed1 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimAsyncOperation.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimAsyncOperation.cs
@@ -595,5 +595,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal const string CimSessionArgument = @"CimSession";
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimBaseAction.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimBaseAction.cs
index d20aece5db..c223a72c88 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimBaseAction.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimBaseAction.cs
@@ -58,7 +58,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
private XOperationContextBase context;
- }//End Class
+ }
///
///
@@ -197,5 +197,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
}
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCmdletModuleInitialize.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCmdletModuleInitialize.cs
index 06f826244c..7f9a1da405 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCmdletModuleInitialize.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCmdletModuleInitialize.cs
@@ -114,5 +114,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new CimCmdletAliasEntry("gcls", "Get-CimClass"),
};
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs
index 57379379f3..7648a8f0d8 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs
@@ -596,7 +596,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
protected override void StopProcessing()
{
Dispose();
- }//End StopProcessing()
+ }
#endregion
@@ -1012,5 +1012,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
return credentials;
}
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetAssociatedInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetAssociatedInstance.cs
index 43df23e0ee..ec8b3eaab4 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetAssociatedInstance.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetAssociatedInstance.cs
@@ -137,5 +137,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetCimClass.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetCimClass.cs
index c4da57cc66..7e5f2ed960 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetCimClass.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetCimClass.cs
@@ -232,5 +232,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetInstance.cs
index b391842bf2..8441b9762d 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetInstance.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetInstance.cs
@@ -536,5 +536,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
private const string queryWithoutWhere = @"SELECT {0} FROM {1}";
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs
index 365ffe5f0a..04917ae951 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs
@@ -398,4 +398,4 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#endregion
#endregion
}
-}//End namespace
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimInvokeCimMethod.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimInvokeCimMethod.cs
index bd318d412e..b4c1891b7a 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimInvokeCimMethod.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimInvokeCimMethod.cs
@@ -470,5 +470,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
private const string actionTemplate = @"Invoke-CimMethod: {0}";
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimNewCimInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimNewCimInstance.cs
index 15c38a7aea..dc2e9a41f7 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimNewCimInstance.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimNewCimInstance.cs
@@ -86,7 +86,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
case CimBaseCommand.ResourceUriSessionSet:
case CimBaseCommand.ResourceUriComputerSet:
{
- nameSpace = cmdlet.Namespace; //passing null is ok for resourceUri set
+ nameSpace = cmdlet.Namespace; // passing null is ok for resourceUri set
cimInstance = CreateCimInstance("DummyClass",
nameSpace,
cmdlet.Key,
@@ -366,5 +366,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
private const string action = @"New-CimInstance";
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimPromptUser.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimPromptUser.cs
index ae992174f2..56951d8d23 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimPromptUser.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimPromptUser.cs
@@ -137,5 +137,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
private CimPromptType prompt;
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRegisterCimIndication.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRegisterCimIndication.cs
index 0139db1895..1bbbea635a 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRegisterCimIndication.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRegisterCimIndication.cs
@@ -376,5 +376,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRemoveCimInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRemoveCimInstance.cs
index f89b882900..2979be4d02 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRemoveCimInstance.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRemoveCimInstance.cs
@@ -147,5 +147,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
private const string action = @"Remove-CimInstance";
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs
index 3880e33c92..a8a0395b39 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs
@@ -980,7 +980,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
else
{
- //CimSession will be returned as part of TestConnection
+ // CimSession will be returned as part of TestConnection
this.cimTestSession.TestCimSession(computerName, proxy);
}
}
@@ -1049,7 +1049,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
///
private CimTestSession cimTestSession;
- #endregion //private members
+ #endregion // private members
#region IDisposable
@@ -1112,7 +1112,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
}
#endregion
- }//End Class
+ }
#endregion
@@ -1189,7 +1189,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#region helper methods
#endregion
- }//End Class
+ }
#endregion
@@ -1265,7 +1265,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
}
}
- }//End Class
+ }
#endregion
@@ -1303,4 +1303,4 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#endregion
-}//End namespace
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs
index fc86cf5398..221212bf54 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs
@@ -1990,7 +1990,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#endregion
- }//End Class
+ }
#region class CimSessionProxyTestConnection
///
@@ -2354,4 +2354,4 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
#endregion
-}//End namespace
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs
index 4ee807563f..76daf60ade 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs
@@ -316,5 +316,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
private const string action = @"Set-CimInstance";
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteError.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteError.cs
index 474542d2f3..8d8dadbf08 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteError.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteError.cs
@@ -430,5 +430,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteMessage.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteMessage.cs
index 117d8fa3f2..f694d3fbe1 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteMessage.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteMessage.cs
@@ -79,5 +79,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
break;
}
}
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteProgress.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteProgress.cs
index b8495ff809..8e6a6f8698 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteProgress.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteProgress.cs
@@ -150,5 +150,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteResultObject.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteResultObject.cs
index a25afaacb6..49cc6791a9 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteResultObject.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteResultObject.cs
@@ -49,6 +49,6 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
private object result;
#endregion
- }//End Class
+ }
-}//End namespace
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CmdletOperation.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CmdletOperation.cs
index aaff4d97f3..bb58c6a0b8 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CmdletOperation.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CmdletOperation.cs
@@ -131,7 +131,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ValidationHelper.ValidateNoNullArgument(cmdlet, "cmdlet");
this.cmdlet = cmdlet;
}
- }//End Class
+ }
#region Class CmdletOperationRemoveCimInstance
@@ -193,7 +193,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
private const string cimRemoveCimInstanceParameterName = @"cimRemoveCimInstance";
#endregion
- }//End Class
+ }
#endregion
@@ -273,7 +273,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
private const string theCimSetCimInstanceParameterName = @"theCimSetCimInstance";
#endregion
- }//End Class
+ }
#endregion
#region Class CmdletOperationInvokeCimMethod
@@ -336,7 +336,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
private const string theCimInvokeCimMethodParameterName = @"theCimInvokeCimMethod";
#endregion
- }//End Class
+ }
#endregion
@@ -397,7 +397,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
private const string theCimNewSessionParameterName = @"theCimNewSession";
#endregion
- }//End Class
+ }
#endregion
-}//End namespace
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimAssociatedInstanceCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimAssociatedInstanceCommand.cs
index 04f985fb62..e48acddcdd 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimAssociatedInstanceCommand.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimAssociatedInstanceCommand.cs
@@ -239,7 +239,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
this.CmdletOperation = new CmdletOperationBase(this);
this.AtBeginProcess = false;
- }//End BeginProcessing()
+ }
///
/// ProcessRecord method.
@@ -255,7 +255,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
operation.GetCimAssociatedInstance(this);
operation.ProcessActions(this.CmdletOperation);
- }//End ProcessRecord()
+ }
///
/// EndProcessing method.
@@ -265,7 +265,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
CimGetAssociatedInstance operation = this.GetOperationAgent();
if (operation != null)
operation.ProcessRemainActions(this.CmdletOperation);
- }//End EndProcessing()
+ }
#endregion
@@ -353,5 +353,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{ CimBaseCommand.ComputerSetName, new ParameterSetEntry(1, true) },
};
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimClassCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimClassCommand.cs
index 759748f42f..c8f6e7745c 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimClassCommand.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimClassCommand.cs
@@ -211,7 +211,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
this.CmdletOperation = new CmdletOperationBase(this);
this.AtBeginProcess = false;
- }//End BeginProcessing()
+ }
///
/// ProcessRecord method.
@@ -227,7 +227,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
cimGetCimClass.GetCimClass(this);
cimGetCimClass.ProcessActions(this.CmdletOperation);
- }//End ProcessRecord()
+ }
///
/// EndProcessing method.
@@ -239,7 +239,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
cimGetCimClass.ProcessRemainActions(this.CmdletOperation);
}
- }//End EndProcessing()
+ }
#endregion
@@ -315,5 +315,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{ CimBaseCommand.ComputerSetName, new ParameterSetEntry(0, true) },
};
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimInstanceCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimInstanceCommand.cs
index 4d9add38d2..bbed668b54 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimInstanceCommand.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimInstanceCommand.cs
@@ -450,7 +450,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
this.CmdletOperation = new CmdletOperationBase(this);
this.AtBeginProcess = false;
- }//End BeginProcessing()
+ }
///
/// ProcessRecord method.
@@ -467,7 +467,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
cimGetInstance.GetCimInstance(this);
cimGetInstance.ProcessActions(this.CmdletOperation);
- }//End ProcessRecord()
+ }
///
/// EndProcessing method.
@@ -479,7 +479,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
cimGetInstance.ProcessRemainActions(this.CmdletOperation);
}
- }//End EndProcessing()
+ }
#endregion
@@ -668,5 +668,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{ CimBaseCommand.QuerySessionSet, new ParameterSetEntry(2) }
};
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimSessionCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimSessionCommand.cs
index 00347e97da..80a0ae70d0 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimSessionCommand.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimSessionCommand.cs
@@ -144,7 +144,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
cimGetSession = new CimGetSession();
this.AtBeginProcess = false;
- }//End BeginProcessing()
+ }
///
/// ProcessRecord method.
@@ -153,7 +153,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
base.CheckParameterSet();
cimGetSession.GetCimSession(this);
- }//End ProcessRecord()
+ }
#endregion
@@ -208,5 +208,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{ CimBaseCommand.NameSet, new ParameterSetEntry(1) },
};
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/InvokeCimMethodCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/InvokeCimMethodCommand.cs
index 75b7a50916..a1e3229b7f 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/InvokeCimMethodCommand.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/InvokeCimMethodCommand.cs
@@ -381,7 +381,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
this.CmdletOperation = new CmdletOperationInvokeCimMethod(this, cimInvokeMethod);
this.AtBeginProcess = false;
- }//End BeginProcessing()
+ }
///
/// ProcessRecord method.
@@ -393,7 +393,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
CimInvokeCimMethod cimInvokeMethod = this.GetOperationAgent();
cimInvokeMethod.InvokeCimMethod(this);
cimInvokeMethod.ProcessActions(this.CmdletOperation);
- }//End ProcessRecord()
+ }
///
/// EndProcessing method.
@@ -405,7 +405,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
cimInvokeMethod.ProcessRemainActions(this.CmdletOperation);
}
- }//End EndProcessing()
+ }
#endregion
@@ -574,5 +574,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{ CimBaseCommand.CimClassSessionSet, new ParameterSetEntry(3) },
};
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimInstanceCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimInstanceCommand.cs
index 54ffe097da..695505e403 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimInstanceCommand.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimInstanceCommand.cs
@@ -325,7 +325,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
this.CmdletOperation = new CmdletOperationBase(this);
this.AtBeginProcess = false;
- }//End BeginProcessing()
+ }
///
/// ProcessRecord method.
@@ -361,7 +361,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
cimNewCimInstance.NewCimInstance(this);
cimNewCimInstance.ProcessActions(this.CmdletOperation);
- }//End ProcessRecord()
+ }
///
/// EndProcessing method.
@@ -373,7 +373,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
cimNewCimInstance.ProcessRemainActions(this.CmdletOperation);
}
- }//End EndProcessing()
+ }
#endregion
@@ -512,5 +512,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{ CimBaseCommand.ResourceUriComputerSet, new ParameterSetEntry(1) },
};
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionCommand.cs
index 01b1e21ec2..9c10bc940c 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionCommand.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionCommand.cs
@@ -216,7 +216,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
cimNewSession = new CimNewSession();
this.CmdletOperation = new CmdletOperationTestCimSession(this, this.cimNewSession);
this.AtBeginProcess = false;
- }//End BeginProcessing()
+ }
///
/// ProcessRecord method.
@@ -228,7 +228,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
BuildSessionOptions(out outputOptions, out outputCredential);
cimNewSession.NewCimSession(this, outputOptions, outputCredential);
cimNewSession.ProcessActions(this.CmdletOperation);
- }//End ProcessRecord()
+ }
///
/// EndProcessing method.
@@ -236,7 +236,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
protected override void EndProcessing()
{
cimNewSession.ProcessRemainActions(this.CmdletOperation);
- }//End EndProcessing()
+ }
#endregion
#region helper methods
@@ -373,5 +373,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
}
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionOptionCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionOptionCommand.cs
index 2a0a38d07c..53c9eeea4f 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionOptionCommand.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionOptionCommand.cs
@@ -447,7 +447,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
this.CmdletOperation = new CmdletOperationBase(this);
this.AtBeginProcess = false;
- }//End BeginProcessing()
+ }
///
/// ProcessRecord method.
@@ -501,14 +501,14 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
this.WriteObject(options);
}
- }//End ProcessRecord()
+ }
///
/// EndProcessing method.
///
protected override void EndProcessing()
{
- }//End EndProcessing()
+ }
#endregion
@@ -817,5 +817,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{ CimBaseCommand.WSManParameterSet, new ParameterSetEntry(0) },
};
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/RegisterCimIndicationCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/RegisterCimIndicationCommand.cs
index 4e7055dc87..b4a5a9670d 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/RegisterCimIndicationCommand.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/RegisterCimIndicationCommand.cs
@@ -258,7 +258,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
DebugHelper.WriteLog("RegisterCimIndicationCommand::EndProcessing subscribe to Unsubscribed event", 4);
newSubscriber.Unsubscribed += new PSEventUnsubscribedEventHandler(newSubscriber_Unsubscribed);
}
- }//End EndProcessing()
+ }
///
///
@@ -365,5 +365,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
};
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimInstanceCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimInstanceCommand.cs
index df27f84178..35ec639570 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimInstanceCommand.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimInstanceCommand.cs
@@ -251,7 +251,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
this.CmdletOperation = new CmdletOperationRemoveCimInstance(this, cimRemoveInstance);
this.AtBeginProcess = false;
- }//End BeginProcessing()
+ }
///
/// ProcessRecord method.
@@ -262,7 +262,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
CimRemoveCimInstance cimRemoveInstance = this.GetOperationAgent();
cimRemoveInstance.RemoveCimInstance(this);
cimRemoveInstance.ProcessActions(this.CmdletOperation);
- }//End ProcessRecord()
+ }
///
/// EndProcessing method.
@@ -274,7 +274,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
cimRemoveInstance.ProcessRemainActions(this.CmdletOperation);
}
- }//End EndProcessing()
+ }
#endregion
@@ -379,5 +379,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{ CimBaseCommand.QuerySessionSet, new ParameterSetEntry(2) },
};
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimSessionCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimSessionCommand.cs
index efaefa8b4d..6e95babeca 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimSessionCommand.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimSessionCommand.cs
@@ -170,7 +170,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
this.cimRemoveSession = new CimRemoveSession();
this.AtBeginProcess = false;
- }//End BeginProcessing()
+ }
///
/// ProcessRecord method.
@@ -179,7 +179,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
base.CheckParameterSet();
this.cimRemoveSession.RemoveCimSession(this);
- }//End ProcessRecord()
+ }
#region private members
///
@@ -240,5 +240,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{ CimBaseCommand.NameSet, new ParameterSetEntry(1) },
};
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/SetCimInstanceCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/SetCimInstanceCommand.cs
index 865f29037c..f8e22c8237 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/SetCimInstanceCommand.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/SetCimInstanceCommand.cs
@@ -308,7 +308,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
this.CmdletOperation = new CmdletOperationSetCimInstance(this, cimSetCimInstance);
this.AtBeginProcess = false;
- }//End BeginProcessing()
+ }
///
/// ProcessRecord method.
@@ -319,7 +319,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
CimSetCimInstance cimSetCimInstance = this.GetOperationAgent();
cimSetCimInstance.SetCimInstance(this);
cimSetCimInstance.ProcessActions(this.CmdletOperation);
- }//End ProcessRecord()
+ }
///
/// EndProcessing method.
@@ -331,7 +331,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
cimSetCimInstance.ProcessRemainActions(this.CmdletOperation);
}
- }//End EndProcessing()
+ }
#endregion
@@ -445,5 +445,5 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{ CimBaseCommand.CimInstanceComputerSet, new ParameterSetEntry(1, true) },
};
#endregion
- }//End Class
-}//End namespace
+ }
+}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs
index c78a48bde6..6c06ca4d83 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs
@@ -216,14 +216,14 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
StackTrace trace = new StackTrace();
StackFrame frame = trace.GetFrame(depth);
- //if (withFileName)
- //{
+ // if (withFileName)
+ // {
// return string.Format(CultureInfo.CurrentUICulture, "{0}#{1}:{2}:", frame.GetFileName()., frame.GetFileLineNumber(), frame.GetMethod().Name);
- //}
- //else
- //{
+ // }
+ // else
+ // {
// return string.Format(CultureInfo.CurrentUICulture, "{0}:", frame.GetMethod());
- //}
+ // }
return string.Format(CultureInfo.CurrentUICulture, "{0}::{1} ",
frame.GetMethod().DeclaringType.Name,
diff --git a/src/Microsoft.PowerShell.Commands.Diagnostics/GetCounterCommand.cs b/src/Microsoft.PowerShell.Commands.Diagnostics/GetCounterCommand.cs
index 63d262f4b2..0310271a0d 100644
--- a/src/Microsoft.PowerShell.Commands.Diagnostics/GetCounterCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Diagnostics/GetCounterCommand.cs
@@ -325,7 +325,7 @@ namespace Microsoft.PowerShell.Commands
uint res = _pdhHelper.EnumObjects(machine, ref counterSets);
if (res != 0)
{
- //add an error message
+ // add an error message
string msg = string.Format(CultureInfo.InvariantCulture, _resourceMgr.GetString("NoCounterSetsOnComputer"), machine, res);
Exception exc = new Exception(msg);
WriteError(new ErrorRecord(exc, "NoCounterSetsOnComputer", ErrorCategory.InvalidResult, machine));
@@ -407,7 +407,7 @@ namespace Microsoft.PowerShell.Commands
{
categoryType = PerformanceCounterCategoryType.MultiInstance;
}
- else //if (counterSetInstances.Count == 1) //???
+ else // if (counterSetInstances.Count == 1) //???
{
categoryType = PerformanceCounterCategoryType.SingleInstance;
}
@@ -535,14 +535,14 @@ namespace Microsoft.PowerShell.Commands
if (res == 0)
{
- //Display valid data
+ // Display valid data
if (!bSkip)
{
WriteSampleSetObject(nextSet);
sampleReads++;
}
- //Don't need to skip anymore
+ // Don't need to skip anymore
bSkip = false;
}
else if (res == PdhResults.PDH_NO_DATA || res == PdhResults.PDH_INVALID_DATA)
@@ -619,7 +619,7 @@ namespace Microsoft.PowerShell.Commands
foreach (string path in _accumulatedCounters)
{
- if (path.StartsWith("\\\\", StringComparison.OrdinalIgnoreCase)) //NOTE: can we do anything smarter here?
+ if (path.StartsWith("\\\\", StringComparison.OrdinalIgnoreCase)) // NOTE: can we do anything smarter here?
{
retColl.Add(path);
}
diff --git a/src/Microsoft.PowerShell.Commands.Diagnostics/GetEventCommand.cs b/src/Microsoft.PowerShell.Commands.Diagnostics/GetEventCommand.cs
index 1197ca1122..5109daa0bc 100644
--- a/src/Microsoft.PowerShell.Commands.Diagnostics/GetEventCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Diagnostics/GetEventCommand.cs
@@ -1333,7 +1333,7 @@ namespace Microsoft.PowerShell.Commands
result.Append(queryCloser);
}
- } //end foreach hashtable
+ }
result.Append(queryListClose);
diff --git a/src/Microsoft.PowerShell.Commands.Diagnostics/ImportCounterCommand.cs b/src/Microsoft.PowerShell.Commands.Diagnostics/ImportCounterCommand.cs
index a6bd86dd8e..eceba8c13b 100644
--- a/src/Microsoft.PowerShell.Commands.Diagnostics/ImportCounterCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Diagnostics/ImportCounterCommand.cs
@@ -362,7 +362,7 @@ namespace Microsoft.PowerShell.Commands
{
categoryType = PerformanceCounterCategoryType.MultiInstance;
}
- else //if (counterSetInstances.Count == 1) //???
+ else // if (counterSetInstances.Count == 1) //???
{
categoryType = PerformanceCounterCategoryType.SingleInstance;
}
diff --git a/src/Microsoft.PowerShell.Commands.Diagnostics/PdhHelper.cs b/src/Microsoft.PowerShell.Commands.Diagnostics/PdhHelper.cs
index 5987ec67d3..cf3c42f357 100644
--- a/src/Microsoft.PowerShell.Commands.Diagnostics/PdhHelper.cs
+++ b/src/Microsoft.PowerShell.Commands.Diagnostics/PdhHelper.cs
@@ -228,11 +228,11 @@ namespace Microsoft.Powershell.Commands.GetCounter.PdhNative
public Int64 largeValue;
- //[FieldOffset (4), MarshalAs(UnmanagedType.LPStr)]
- //public string AnsiStringValue;
+ // [FieldOffset (4), MarshalAs(UnmanagedType.LPStr)]
+ // public string AnsiStringValue;
- //[FieldOffset(4), MarshalAs(UnmanagedType.LPWStr)]
- //public string WideStringValue;
+ // [FieldOffset(4), MarshalAs(UnmanagedType.LPWStr)]
+ // public string WideStringValue;
};
[StructLayout(LayoutKind.Sequential)]
@@ -308,13 +308,13 @@ namespace Microsoft.Powershell.Commands.GetCounter.PdhNative
[DllImport("pdh.dll", CharSet = CharSet.Unicode)]
private static extern uint PdhAddCounter(PdhSafeQueryHandle queryHandle, string counterPath, IntPtr userData, out IntPtr counterHandle);
- //Win7+ only
+ // Win7+ only
[DllImport("pdh.dll", CharSet = CharSet.Unicode)]
private static extern uint PdhAddRelogCounter(PdhSafeQueryHandle queryHandle, string counterPath,
UInt32 counterType, UInt32 counterDefaultScale,
UInt64 timeBase, out IntPtr counterHandle);
- //not on XP
+ // not on XP
[DllImport("pdh.dll")]
private static extern uint PdhCollectQueryDataWithTime(PdhSafeQueryHandle queryHandle, ref Int64 pllTimeStamp);
@@ -337,18 +337,18 @@ namespace Microsoft.Powershell.Commands.GetCounter.PdhNative
out PdhSafeLogHandle phLog
);
- //Win7+ only
+ // Win7+ only
[DllImport("pdh.dll", CharSet = CharSet.Unicode)]
private static extern void PdhResetRelogCounterValues(PdhSafeLogHandle LogHandle);
- //Win7+ only
+ // Win7+ only
[DllImport("pdh.dll", CharSet = CharSet.Unicode)]
private static extern uint PdhSetCounterValue(IntPtr CounterHandle,
ref PDH_RAW_COUNTER Value, /*PPDH_RAW_COUNTER */
string InstanceName
);
- //Win7+ only
+ // Win7+ only
[DllImport("pdh.dll")]
private static extern uint PdhWriteRelogSample(PdhSafeLogHandle LogHandle,
Int64 Timestamp
@@ -385,7 +385,7 @@ namespace Microsoft.Powershell.Commands.GetCounter.PdhNative
[DllImport("pdh.dll", CharSet = CharSet.Unicode)]
private static extern uint PdhParseCounterPath(string szFullPathBuffer,
- IntPtr pCounterPathElements, //PDH_COUNTER_PATH_ELEMENTS
+ IntPtr pCounterPathElements, // PDH_COUNTER_PATH_ELEMENTS
ref IntPtr pdwBufferSize,
uint dwFlags);
@@ -396,15 +396,15 @@ namespace Microsoft.Powershell.Commands.GetCounter.PdhNative
ref IntPtr pcchPathListLength,
uint dwFlags);
- //not available on XP
+ // not available on XP
[DllImport("pdh.dll", CharSet = CharSet.Unicode)]
private static extern uint PdhValidatePathEx(PdhSafeDataSourceHandle hDataSource, string szFullPathBuffer);
[DllImport("pdh.dll", CharSet = CharSet.Unicode)]
private static extern uint PdhValidatePath(string szFullPathBuffer);
- //not available on XP
- [DllImport("pdh.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.StdCall, PreserveSig = true)] //private export
+ // not available on XP
+ [DllImport("pdh.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.StdCall, PreserveSig = true)] // private export
private static extern IntPtr PdhGetExplainText(string szMachineName, string szObjectName, string szCounterName);
[DllImport("pdh.dll", CharSet = CharSet.Unicode)]
@@ -517,7 +517,7 @@ namespace Microsoft.Powershell.Commands.GetCounter.PdhNative
res = PdhGetCounterInfo(hCounter, false, ref pBufferSize, bufCounterInfo);
if (res == 0 && bufCounterInfo != IntPtr.Zero)
{
- //PDH_COUNTER_INFO pdhCounterInfo = (PDH_COUNTER_INFO)Marshal.PtrToStructure(bufCounterInfo, typeof(PDH_COUNTER_INFO));
+ // PDH_COUNTER_INFO pdhCounterInfo = (PDH_COUNTER_INFO)Marshal.PtrToStructure(bufCounterInfo, typeof(PDH_COUNTER_INFO));
counterType = (uint)Marshal.ReadInt32(bufCounterInfo, 4);
defaultScale = (uint)Marshal.ReadInt32(bufCounterInfo, 20);
@@ -547,7 +547,7 @@ namespace Microsoft.Powershell.Commands.GetCounter.PdhNative
uint res = PdhHelper.PdhBindInputDataSource(out _hDataSource, null);
if (res != 0)
{
- //Console.WriteLine("error in PdhBindInputDataSource: " + res);
+ // Console.WriteLine("error in PdhBindInputDataSource: " + res);
return res;
}
@@ -568,7 +568,7 @@ namespace Microsoft.Powershell.Commands.GetCounter.PdhNative
uint res = PdhHelper.PdhBindInputDataSource(out _hDataSource, dataSourceName);
if (res != 0)
{
- //Console.WriteLine("error in PdhBindInputDataSource: " + res);
+ // Console.WriteLine("error in PdhBindInputDataSource: " + res);
}
return res;
@@ -598,7 +598,7 @@ namespace Microsoft.Powershell.Commands.GetCounter.PdhNative
if (res != 0)
{
- //Console.WriteLine("error in PdhOpenQueryH: " + res);
+ // Console.WriteLine("error in PdhOpenQueryH: " + res);
}
return res;
@@ -658,7 +658,7 @@ namespace Microsoft.Powershell.Commands.GetCounter.PdhNative
return res;
}
- Int32 cChars = MachineListTcharSizePtr.ToInt32(); //should be ok on 64 bit
+ Int32 cChars = MachineListTcharSizePtr.ToInt32(); // should be ok on 64 bit
IntPtr strMachineList = Marshal.AllocHGlobal(cChars * sizeof(char));
try
@@ -717,23 +717,23 @@ namespace Microsoft.Powershell.Commands.GetCounter.PdhNative
if (res == PdhResults.PDH_CSTATUS_NO_INSTANCE)
{
instanceNames.Clear();
- return 0; //masking the error
+ return 0; // masking the error
}
else if (res == PdhResults.PDH_CSTATUS_NO_OBJECT)
{
counterNames.Clear();
- return 0; //masking the error
+ return 0; // masking the error
}
else if (res != PdhResults.PDH_MORE_DATA)
{
- //Console.WriteLine("error in PdhEnumObjectItemsH 1st call: " + res);
+ // Console.WriteLine("error in PdhEnumObjectItemsH 1st call: " + res);
return res;
}
Int32 cChars = pCounterBufferSize.ToInt32();
IntPtr strCountersList = (cChars > 0) ?
Marshal.AllocHGlobal((cChars) * sizeof(char)) : IntPtr.Zero;
- //re-set count to 0 if it is lte 2
+ // re-set count to 0 if it is lte 2
if (cChars < 0)
{
pCounterBufferSize = new IntPtr(0);
@@ -743,7 +743,7 @@ namespace Microsoft.Powershell.Commands.GetCounter.PdhNative
IntPtr strInstancesList = (cChars > 0) ?
Marshal.AllocHGlobal((cChars) * sizeof(char)) : IntPtr.Zero;
- //re-set count to 0 if it is lte 2
+ // re-set count to 0 if it is lte 2
if (cChars < 0)
{
pInstanceBufferSize = new IntPtr(0);
@@ -757,7 +757,7 @@ namespace Microsoft.Powershell.Commands.GetCounter.PdhNative
PerfDetail.PERF_DETAIL_WIZARD, 0);
if (res != 0)
{
- //Console.WriteLine("error in PdhEnumObjectItemsH 2nd call: " + res + "\n Counter buffer size is "
+ // Console.WriteLine("error in PdhEnumObjectItemsH 2nd call: " + res + "\n Counter buffer size is "
// + pCounterBufferSize.ToInt32() + "\n Instance buffer size is " + pInstanceBufferSize.ToInt32());
}
else
@@ -807,7 +807,7 @@ namespace Microsoft.Powershell.Commands.GetCounter.PdhNative
foreach (string counterSet in counterSets)
{
- //Console.WriteLine("Counter set " + counterSet);
+ // Console.WriteLine("Counter set " + counterSet);
StringCollection counterSetCounters = new StringCollection();
StringCollection counterSetInstances = new StringCollection();
@@ -946,7 +946,7 @@ namespace Microsoft.Powershell.Commands.GetCounter.PdhNative
0);
if (res != PdhResults.PDH_MORE_DATA && res != 0)
{
- //Console.WriteLine("error in PdhParseCounterPath: " + res);
+ // Console.WriteLine("error in PdhParseCounterPath: " + res);
return res;
}
@@ -1238,7 +1238,7 @@ namespace Microsoft.Powershell.Commands.GetCounter.PdhNative
prefixInstanceMap.Add(lcPathMinusInstance, newList);
}
- //Console.WriteLine ("Added path " + sample.Path + " to the 1ist map with prefix " + lcPathMinusInstance);
+ // Console.WriteLine ("Added path " + sample.Path + " to the 1ist map with prefix " + lcPathMinusInstance);
}
//
@@ -1276,7 +1276,7 @@ namespace Microsoft.Powershell.Commands.GetCounter.PdhNative
continue;
}
- //now, add all actual paths to m_ReloggerPathToHandleAndInstanceMap
+ // now, add all actual paths to m_ReloggerPathToHandleAndInstanceMap
foreach (PerformanceCounterSample sample in prefixInstanceMap[prefix])
{
PDH_COUNTER_PATH_ELEMENTS pathElts = new PDH_COUNTER_PATH_ELEMENTS();
@@ -1299,12 +1299,12 @@ namespace Microsoft.Powershell.Commands.GetCounter.PdhNative
if (!_reloggerPathToHandleAndInstanceMap.ContainsKey(sample.Path.ToLowerInvariant()))
{
_reloggerPathToHandleAndInstanceMap.Add(sample.Path.ToLowerInvariant(), chi);
- //Console.WriteLine ("added map path:" + sample.Path );
+ // Console.WriteLine ("added map path:" + sample.Path );
}
}
}
- //TODO: verify that all counters are in the map
+ // TODO: verify that all counters are in the map
return (_reloggerPathToHandleAndInstanceMap.Keys.Count > 0) ? 0 : res;
}
@@ -1409,14 +1409,14 @@ namespace Microsoft.Powershell.Commands.GetCounter.PdhNative
res = GetCounterInfoPlus(hCounter, out counterType, out defaultScale, out timeBase);
if (res != 0)
{
- //Console.WriteLine ("GetCounterInfoPlus for " + path + " failed with " + res);
+ // Console.WriteLine ("GetCounterInfoPlus for " + path + " failed with " + res);
}
PDH_RAW_COUNTER rawValue;
res = PdhGetRawCounterValue(hCounter, out counterTypePtr, out rawValue);
if (res == PdhResults.PDH_INVALID_DATA || res == PdhResults.PDH_NO_DATA)
{
- //Console.WriteLine ("PdhGetRawCounterValue returned " + res);
+ // Console.WriteLine ("PdhGetRawCounterValue returned " + res);
samplesArr[sampleIndex++] = new PerformanceCounterSample(path,
_consumerPathToHandleAndInstanceMap[path].InstanceName,
0,
@@ -1457,7 +1457,7 @@ namespace Microsoft.Powershell.Commands.GetCounter.PdhNative
out fmtValueDouble);
if (res == PdhResults.PDH_INVALID_DATA || res == PdhResults.PDH_NO_DATA)
{
- //Console.WriteLine ("PdhGetFormattedCounterValue returned " + res);
+ // Console.WriteLine ("PdhGetFormattedCounterValue returned " + res);
samplesArr[sampleIndex++] = new PerformanceCounterSample(path,
_consumerPathToHandleAndInstanceMap[path].InstanceName,
0,
@@ -1477,7 +1477,7 @@ namespace Microsoft.Powershell.Commands.GetCounter.PdhNative
}
else if (res != 0)
{
- //Console.WriteLine ("PdhGetFormattedCounterValue returned " + res);
+ // Console.WriteLine ("PdhGetFormattedCounterValue returned " + res);
return res;
}
@@ -1573,7 +1573,7 @@ namespace Microsoft.Powershell.Commands.GetCounter.PdhNative
res = GetCounterInfoPlus(hCounter, out counterType, out defaultScale, out timeBase);
if (res != 0)
{
- //Console.WriteLine ("GetCounterInfoPlus for " + path + " failed with " + res);
+ // Console.WriteLine ("GetCounterInfoPlus for " + path + " failed with " + res);
}
PDH_RAW_COUNTER rawValue;
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/Computer.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/Computer.cs
index 4db2998aa3..e2dfa8d216 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/Computer.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/Computer.cs
@@ -878,7 +878,7 @@ $result
{
_waitOnComputers.Add(computer);
}
- }//end foreach
+ }
if (_waitOnComputers.Count > 0)
{
@@ -1059,7 +1059,7 @@ $result
_status = StringUtil.Format(ComputerResources.WaitForMultipleComputers, machineCompleteRestart, _waitOnComputers.Count);
_percent = machineCompleteRestart * 100 / _waitOnComputers.Count;
}
- }// end while(true)
+ }
if (_timeUp)
{
@@ -1081,9 +1081,9 @@ $result
// Wait for PowerShell. All computers that finished restarting are put in "allDoneList"
} while (false);
}
- }// end if(waitOnComputer.Count > 0)
- }//end DefaultParameter
- }//End Processrecord
+ }
+ }
+ }
///
/// to implement ^C.
@@ -1203,7 +1203,7 @@ $result
flags[0] = forcedShutdown;
ProcessWSManProtocol(flags);
- }//End Processrecord
+ }
///
/// to implement ^C.
@@ -1302,7 +1302,7 @@ $result
///
/// Emit the output.
///
- //[Alias("Restart")]
+ // [Alias("Restart")]
[Parameter]
public SwitchParameter PassThru { get; set; }
@@ -1446,7 +1446,7 @@ $result
{
Timeout = TimeSpan.FromMilliseconds(10000),
CancellationToken = cancelTokenSource.Token,
- //This prefix works against all versions of the WinRM server stack, both win8 and win7
+ // This prefix works against all versions of the WinRM server stack, both win8 and win7
ResourceUriPrefix = new Uri(ComputerWMIHelper.CimUriPrefix)
};
@@ -2098,7 +2098,7 @@ $result
{
Timeout = TimeSpan.FromMilliseconds(10000),
CancellationToken = cancelToken,
- //This prefix works against all versions of the WinRM server stack, both win8 and win7
+ // This prefix works against all versions of the WinRM server stack, both win8 and win7
ResourceUriPrefix = new Uri(ComputerWMIHelper.CimUriPrefix)
};
@@ -2256,6 +2256,6 @@ $result
}
}
#endregion Helper
-}//End namespace
+}
#endif
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/Eventlog.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/Eventlog.cs
index 073ad7a35d..7985411cef 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/Eventlog.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/Eventlog.cs
@@ -435,9 +435,9 @@ namespace Microsoft.PowerShell.Commands
if (!AsBaseObject)
{
- //wrapping in PSobject to insert into PStypesnames
+ // wrapping in PSobject to insert into PStypesnames
PSObject logentry = new PSObject(entry);
- //inserting at zero position in reverse order
+ // inserting at zero position in reverse order
logentry.TypeNames.Insert(0, logentry.ImmediateBaseObject + "#" + log.Log + "/" + entry.Source);
logentry.TypeNames.Insert(0, logentry.ImmediateBaseObject + "#" + log.Log + "/" + entry.Source + "/" + entry.InstanceId);
WriteObject(logentry);
@@ -618,11 +618,11 @@ namespace Microsoft.PowerShell.Commands
return matchingLogs;
}
- //private string ErrorBase = "EventlogResources";
+ // private string ErrorBase = "EventlogResources";
private DateTime _initial = new DateTime();
#endregion Private
- }//GetEventLogCommand
+ }
#endregion GetEventLogCommand
#region ClearEventLogCommand
@@ -715,10 +715,10 @@ namespace Microsoft.PowerShell.Commands
}
}
- //beginprocessing
+ // beginprocessing
#endregion Overrides
- }//ClearEventLogCommand
+ }
#endregion ClearEventLogCommand
#region WriteEventLogCommand
@@ -862,10 +862,10 @@ namespace Microsoft.PowerShell.Commands
{
WriteNonTerminatingError(ex, "PathDoesNotExist", StringUtil.Format(EventlogResources.PathDoesNotExist, null, ComputerName, null), ErrorCategory.InvalidOperation);
}
- }//beginprocessing
+ }
#endregion Overrides
- }//WriteEventLogCommand
+ }
#endregion WriteEventLogCommand
#region LimitEventLogCommand
@@ -1302,9 +1302,9 @@ namespace Microsoft.PowerShell.Commands
}
}
}
- //End BeginProcessing()
+ // End BeginProcessing()
#endregion override
- }//End Class
+ }
#endregion NewEventLogCommand
#region RemoveEventLogCommand
@@ -1444,9 +1444,9 @@ namespace Microsoft.PowerShell.Commands
ErrorRecord er = new ErrorRecord(ex, "NewEventlogException", ErrorCategory.SecurityError, null);
WriteError(er);
}
- }//End BeginProcessing()
- }//End Class
+ }
+ }
#endregion RemoveEventLogCommand
-}//Microsoft.PowerShell.Commands
+}
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetComputerInfoCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetComputerInfoCommand.cs
index 60ddd60bd2..9bb553352e 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetComputerInfoCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetComputerInfoCommand.cs
@@ -204,7 +204,7 @@ namespace Microsoft.PowerShell.Commands
if (_namedProperties != null)
{
- //var output = CreateCustomOutputObject(namedProperties, systemInfo, osInfo, miscInfo);
+ // var output = CreateCustomOutputObject(namedProperties, systemInfo, osInfo, miscInfo);
var output = CreateCustomOutputObject(infoOutput, _namedProperties);
WriteObject(output);
@@ -552,7 +552,7 @@ namespace Microsoft.PowerShell.Commands
// get platform role
try
{
- //TODO: Local machine only. Check for that?
+ // TODO: Local machine only. Check for that?
uint powerRole = Native.PowerDeterminePlatformRoleEx(Native.POWER_PLATFORM_ROLE_V2);
if (powerRole >= (uint)PowerPlatformRole.MaximumEnumValue)
rv.powerPlatformRole = PowerPlatformRole.Unspecified;
@@ -566,11 +566,11 @@ namespace Microsoft.PowerShell.Commands
}
// get secure-boot info
- //TODO: Local machine only? Check for that?
+ // TODO: Local machine only? Check for that?
rv.firmwareType = GetFirmwareType();
// get amount of memory physically installed
- //TODO: Local machine only. Check for that?
+ // TODO: Local machine only. Check for that?
rv.physicallyInstalledMemory = GetPhysicallyInstalledSystemMemory();
// get time zone
@@ -890,7 +890,7 @@ namespace Microsoft.PowerShell.Commands
if (otherInfo.keyboards.Length > 0)
{
- //TODO: handle multiple keyboards?
+ // TODO: handle multiple keyboards?
// there might be several keyboards found. For the moment
// we display info for only one
@@ -1617,7 +1617,7 @@ namespace Microsoft.PowerShell.Commands
[SuppressMessage("Microsoft.Performance", "CA1812:AvoidUninstantiatedInternalClasses", Justification = "Class is instantiated directly from a CIM instance")]
internal class WMiLogicalMemory
{
- //TODO: fill this in!!!
+ // TODO: fill this in!!!
public uint? TotalPhysicalMemory;
}
@@ -2379,7 +2379,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Date and time the object was installed.
///
- //TODO: do we want this? On my system this is null
+ // TODO: do we want this? On my system this is null
public DateTime? BiosInstallDate { get; internal set; }
///
@@ -2486,7 +2486,7 @@ namespace Microsoft.PowerShell.Commands
///
/// System hardware security settings for administrator password status.
///
- //public AdminPasswordStatus? CsAdminPasswordStatus { get; internal set; }
+ // public AdminPasswordStatus? CsAdminPasswordStatus { get; internal set; }
public HardwareSecurity? CsAdminPasswordStatus { get; internal set; }
@@ -2535,12 +2535,12 @@ namespace Microsoft.PowerShell.Commands
///
/// The name of this computer.
///
- public string CsCaption { get; internal set; } //TODO: remove this? Same as CsName???
+ public string CsCaption { get; internal set; } // TODO: remove this? Same as CsName???
///
/// Boot up state of the chassis.
///
- //public ChassisBootupState? CsChassisBootupState { get; internal set; }
+ // public ChassisBootupState? CsChassisBootupState { get; internal set; }
public SystemElementState? CsChassisBootupState { get; internal set; }
@@ -2597,7 +2597,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Hardware security setting for the reset button on a computer.
///
- //public FrontPanelResetStatus? CsFrontPanelResetStatus { get; internal set; }
+ // public FrontPanelResetStatus? CsFrontPanelResetStatus { get; internal set; }
public HardwareSecurity? CsFrontPanelResetStatus { get; internal set; }
@@ -2624,7 +2624,7 @@ namespace Microsoft.PowerShell.Commands
///
/// System hardware security setting for Keyboard Password Status.
///
- //public KeyboardPasswordStatus? CsKeyboardPasswordStatus { get; internal set; }
+ // public KeyboardPasswordStatus? CsKeyboardPasswordStatus { get; internal set; }
public HardwareSecurity? CsKeyboardPasswordStatus { get; internal set; }
@@ -2647,7 +2647,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Key of a CIM_System instance in an enterprise environment.
///
- public string CsName { get; internal set; } //TODO: get rid of this? Is this about CIM rather than about the computer?
+ public string CsName { get; internal set; }
///
/// An array of objects describing any
@@ -2736,7 +2736,7 @@ namespace Microsoft.PowerShell.Commands
///
/// System hardware security setting for Power-On Password Status.
///
- //public PowerOnPasswordStatus? CsPowerOnPasswordStatus { get; internal set; }
+ // public PowerOnPasswordStatus? CsPowerOnPasswordStatus { get; internal set; }
public HardwareSecurity? CsPowerOnPasswordStatus { get; internal set; }
@@ -2748,7 +2748,7 @@ namespace Microsoft.PowerShell.Commands
///
/// State of the power supply or supplies when last booted.
///
- //public PowerSupplyState? CsPowerSupplyState { get; internal set; }
+ // public PowerSupplyState? CsPowerSupplyState { get; internal set; }
public SystemElementState? CsPowerSupplyState { get; internal set; }
@@ -2819,7 +2819,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Thermal state of the system when last booted.
///
- //public ThermalState? CsThermalState { get; internal set; }
+ // public ThermalState? CsThermalState { get; internal set; }
public SystemElementState? CsThermalState { get; internal set; }
@@ -3360,7 +3360,7 @@ namespace Microsoft.PowerShell.Commands
//
// This value is reserved
//
- //Reserved = 0,
+ // Reserved = 0,
///
/// Boot into operating system.
@@ -3603,12 +3603,12 @@ namespace Microsoft.PowerShell.Commands
//
// This value is reserved
//
- //Reserved_5 = 5,
+ // Reserved_5 = 5,
//
// This value is reserved
//
- //Reserved_6 = 6,
+ // Reserved_6 = 6,
///
/// CPU is in another state.
@@ -3621,7 +3621,7 @@ namespace Microsoft.PowerShell.Commands
///
public enum DataExecutionPreventionSupportPolicy
{
- //Unknown = -1,
+ // Unknown = -1,
///
/// DEP is turned off for all 32-bit applications on the computer with no exceptions.
@@ -4695,7 +4695,7 @@ namespace Microsoft.PowerShell.Commands
/// Specifies the type of the computer in use, such as laptop, desktop, or Tablet.
/// This is an extended version of PCSystemType.
///
- //TODO: conflate these two enums???
+ // TODO: conflate these two enums???
public enum PCSystemTypeEx
{
///
@@ -4930,7 +4930,7 @@ namespace Microsoft.PowerShell.Commands
//
// This value is reserved
//
- //Reserved = 0,
+ // Reserved = 0,
///
/// An event other than specified in this enumeration.
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/Hotfix.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/Hotfix.cs
index 15394d8d36..c355cc4c63 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/Hotfix.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/Hotfix.cs
@@ -141,15 +141,15 @@ namespace Microsoft.PowerShell.Commands
catch (SystemException) // thrown by SecurityIdentifier.constr
{
}
- //catch (ArgumentException) // thrown (indirectly) by SecurityIdentifier.constr (on XP only?)
- //{ catch not needed - this is already caught as SystemException
- //}
- //catch (PlatformNotSupportedException) // thrown (indirectly) by SecurityIdentifier.Translate (on Win95 only?)
- //{ catch not needed - this is already caught as SystemException
- //}
- //catch (UnauthorizedAccessException) // thrown (indirectly) by SecurityIdentifier.Translate
- //{ catch not needed - this is already caught as SystemException
- //}
+ // catch (ArgumentException) // thrown (indirectly) by SecurityIdentifier.constr (on XP only?)
+ // { catch not needed - this is already caught as SystemException
+ // }
+ // catch (PlatformNotSupportedException) // thrown (indirectly) by SecurityIdentifier.Translate (on Win95 only?)
+ // { catch not needed - this is already caught as SystemException
+ // }
+ // catch (UnauthorizedAccessException) // thrown (indirectly) by SecurityIdentifier.Translate
+ // { catch not needed - this is already caught as SystemException
+ // }
}
WriteObject(obj);
@@ -167,7 +167,7 @@ namespace Microsoft.PowerShell.Commands
this.Dispose();
}
}
- }//end of BeginProcessing method
+ }
///
/// to implement ^C.
@@ -240,6 +240,6 @@ namespace Microsoft.PowerShell.Commands
}
#endregion "IDisposable Members"
- }//end class
+ }
#endregion
-}//Microsoft.Powershell.commands
+}
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/InvokeWMIMethodCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/InvokeWMIMethodCommand.cs
index 42cf2ede6a..9a21cceadf 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/InvokeWMIMethodCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/InvokeWMIMethodCommand.cs
@@ -163,7 +163,7 @@ namespace Microsoft.PowerShell.Commands
}
else if (namespaceSpecified)
{
- //ThrowTerminatingError
+ // ThrowTerminatingError
ThrowTerminatingError(new ErrorRecord(
new InvalidOperationException(),
"NamespaceSpecifiedWithPath",
@@ -173,14 +173,14 @@ namespace Microsoft.PowerShell.Commands
if (mPath.Server != "." && serverNameSpecified)
{
- //ThrowTerminatingError
+ // ThrowTerminatingError
ThrowTerminatingError(new ErrorRecord(
new InvalidOperationException(),
"ComputerNameSpecifiedWithPath",
ErrorCategory.InvalidOperation,
ComputerName));
}
- //If server name is specified loop through it.
+ // If server name is specified loop through it.
if (!(mPath.Server == "." && serverNameSpecified))
{
string[] serverName = new string[] { mPath.Server };
@@ -268,7 +268,7 @@ namespace Microsoft.PowerShell.Commands
}
}
}
- }//ProcessRecord
+ }
///
/// Ensure that the argument is a collection containing no PSObjects.
@@ -314,5 +314,5 @@ namespace Microsoft.PowerShell.Commands
}
#endregion Command code
- }//InvokeWMIObject
+ }
}
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/Process.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/Process.cs
index 83d606d073..741daebcdd 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/Process.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/Process.cs
@@ -963,7 +963,7 @@ namespace Microsoft.PowerShell.Commands
///
protected override void ProcessRecord()
{
- //adding the processes into the list
+ // adding the processes into the list
foreach (Process process in MatchingProcesses())
{
// Idle process has processid zero,so handle that because we cannot wait on it.
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/RegisterWMIEventCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/RegisterWMIEventCommand.cs
index 1389691ef5..f40acce671 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/RegisterWMIEventCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/RegisterWMIEventCommand.cs
@@ -105,7 +105,7 @@ namespace Microsoft.PowerShell.Commands
string wmiQuery = this.Query;
if (this.Class != null)
{
- //Validate class format
+ // Validate class format
for (int i = 0; i < this.Class.Length; i++)
{
if (Char.IsLetterOrDigit(this.Class[i]) || this.Class[i].Equals('_'))
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/RemoveWMIObjectCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/RemoveWMIObjectCommand.cs
index 40b451b7c5..c9fb150b76 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/RemoveWMIObjectCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/RemoveWMIObjectCommand.cs
@@ -104,7 +104,7 @@ namespace Microsoft.PowerShell.Commands
}
else if (namespaceSpecified)
{
- //ThrowTerminatingError
+ // ThrowTerminatingError
ThrowTerminatingError(new ErrorRecord(
new InvalidOperationException(),
"NamespaceSpecifiedWithPath",
@@ -114,7 +114,7 @@ namespace Microsoft.PowerShell.Commands
if (mPath.Server != "." && serverNameSpecified)
{
- //ThrowTerminatingError
+ // ThrowTerminatingError
ThrowTerminatingError(new ErrorRecord(
new InvalidOperationException(),
"ComputerNameSpecifiedWithPath",
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/Service.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/Service.cs
index f966c954da..dd6691eb85 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/Service.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/Service.cs
@@ -1435,7 +1435,7 @@ namespace Microsoft.PowerShell.Commands
continue;
}
- //Set the NoWait parameter to false since we are not adding this switch to this cmdlet.
+ // Set the NoWait parameter to false since we are not adding this switch to this cmdlet.
List stoppedServices = DoStopService(serviceController, Force, true);
if (stoppedServices.Count > 0)
@@ -1598,7 +1598,7 @@ namespace Microsoft.PowerShell.Commands
///
/// This is not a parameter for this cmdlet.
///
- //This has been shadowed from base class and removed parameter tag to fix gcm "Set-Service" -syntax
+ // This has been shadowed from base class and removed parameter tag to fix gcm "Set-Service" -syntax
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public new string[] Include
{
@@ -1618,7 +1618,7 @@ namespace Microsoft.PowerShell.Commands
///
/// This is not a parameter for this cmdlet.
///
- //This has been shadowed from base class and removed parameter tag to fix gcm "Set-Service" -syntax
+ // This has been shadowed from base class and removed parameter tag to fix gcm "Set-Service" -syntax
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public new string[] Exclude
{
@@ -1669,14 +1669,14 @@ namespace Microsoft.PowerShell.Commands
}
catch (ArgumentException ex)
{
- //cannot use WriteNonterminatingError as service is null
+ // cannot use WriteNonterminatingError as service is null
ErrorRecord er = new ErrorRecord(ex, "ArgumentException", ErrorCategory.ObjectNotFound, Name);
WriteError(er);
return;
}
catch (InvalidOperationException ex)
{
- //cannot use WriteNonterminatingError as service is null
+ // cannot use WriteNonterminatingError as service is null
ErrorRecord er = new ErrorRecord(ex, "InvalidOperationException", ErrorCategory.ObjectNotFound, Name);
WriteError(er);
return;
@@ -1837,10 +1837,10 @@ namespace Microsoft.PowerShell.Commands
if (!service.Status.Equals(ServiceControllerStatus.Running))
{
if (service.Status.Equals(ServiceControllerStatus.Paused))
- //resume service
+ // resume service
DoResumeService(service);
else
- //start service
+ // start service
DoStartService(service);
}
}
@@ -1916,7 +1916,7 @@ namespace Microsoft.PowerShell.Commands
}
}
}
- } //End try
+ }
finally
{
if (IntPtr.Zero != password)
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/SetClipboardCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/SetClipboardCommand.cs
index 0e0e60338b..8998947dc6 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/SetClipboardCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/SetClipboardCommand.cs
@@ -231,7 +231,7 @@ namespace Microsoft.PowerShell.Commands
StringCollection clipBoardContent = Clipboard.GetFileDropList();
dropFiles = new HashSet(clipBoardContent.Cast().ToList(), StringComparer.OrdinalIgnoreCase);
- //we need the count of original files so we can get the accurate files number that has been appended.
+ // we need the count of original files so we can get the accurate files number that has been appended.
clipBoardContentLength = clipBoardContent.Count;
}
}
@@ -335,15 +335,15 @@ EndSelection:<<<<<<<<4";
int fragmentEndIdx = html.LastIndexOf(EndFragment, StringComparison.OrdinalIgnoreCase);
// if html tag is missing add it surrounding the given html
- //find the index of " 0 ? html.IndexOf('>', htmlOpenIdx) + 1 : -1;
- //find the index of " 0 ? html.IndexOf('>', bodyOpenIdx) + 1 : -1;
@@ -361,7 +361,7 @@ EndSelection:<<<<<<<<4";
else
{
// insert start/end fragments in the proper place (related to html/body tags if exists) so the paste will work correctly
- //find the index of "