diff --git a/src/Microsoft.PowerShell.Security/security/CertificateProvider.cs b/src/Microsoft.PowerShell.Security/security/CertificateProvider.cs
index f54291542f..754f4c33a7 100644
--- a/src/Microsoft.PowerShell.Security/security/CertificateProvider.cs
+++ b/src/Microsoft.PowerShell.Security/security/CertificateProvider.cs
@@ -2251,8 +2251,7 @@ namespace Microsoft.PowerShell.Commands
///
/// whether we only need the names
/// filter info
- /// Does not return a value.
- ///
+ /// Does not return a value.
private void GetChildItemsOrNames(
string path,
bool recurse,
@@ -2516,8 +2515,7 @@ namespace Microsoft.PowerShell.Commands
/// recursively return all items if true
///
/// filter info
- /// Does not return a value.
- ///
+ /// Does not return a value.
private void GetStoresOrNames(
string path,
bool recurse,
diff --git a/src/Microsoft.PowerShell.Security/security/Utils.cs b/src/Microsoft.PowerShell.Security/security/Utils.cs
index d17e425b7f..bc75dafa67 100644
--- a/src/Microsoft.PowerShell.Security/security/Utils.cs
+++ b/src/Microsoft.PowerShell.Security/security/Utils.cs
@@ -16,8 +16,7 @@ namespace Microsoft.PowerShell
/// gets the size of a file
///
/// path to file
- /// File size .
- ///
+ /// File size.
internal static long GetFileSize(string filePath)
{
long size = 0;
@@ -35,8 +34,7 @@ namespace Microsoft.PowerShell
///
/// ref to host ui interface
/// prompt text
- /// User input as secure string.
- ///
+ /// user input as secure string.
internal static SecureString PromptForSecureString(PSHostUserInterface hostUI,
string prompt)
{
@@ -55,7 +53,6 @@ namespace Microsoft.PowerShell
/// error identifier
/// replacement params for resource string formatting
///
- ///
internal static
ErrorRecord CreateFileNotFoundErrorRecord(string resourceStr,
string errorId,
@@ -84,7 +81,6 @@ namespace Microsoft.PowerShell
/// path that was not found
/// error identifier
/// ErrorRecord instance.
- ///
internal static
ErrorRecord CreatePathNotFoundErrorRecord(string path,
string errorId)
@@ -108,7 +104,6 @@ namespace Microsoft.PowerShell
/// error identifier
/// replacement params for resource string formatting
///
- ///
internal static
ErrorRecord CreateNotSupportedErrorRecord(string resourceStr,
string errorId,
@@ -134,7 +129,6 @@ namespace Microsoft.PowerShell
/// exception to include in ErrorRecord
/// error identifier
///
- ///
internal static
ErrorRecord CreateInvalidArgumentErrorRecord(Exception e,
string errorId)
@@ -161,7 +155,6 @@ namespace Microsoft.PowerShell
/// filesystem path if all conditions are true,
/// null otherwise
///
- ///
internal static string GetFilePathOfExistingFile(PSCmdlet cmdlet,
string path)
{
@@ -177,4 +170,3 @@ namespace Microsoft.PowerShell
}
}
}
-
diff --git a/src/System.Management.Automation/engine/hostifaces/RunspaceInit.cs b/src/System.Management.Automation/engine/hostifaces/RunspaceInit.cs
index 1e7052d560..4a52d11be5 100644
--- a/src/System.Management.Automation/engine/hostifaces/RunspaceInit.cs
+++ b/src/System.Management.Automation/engine/hostifaces/RunspaceInit.cs
@@ -17,8 +17,6 @@ namespace System.Management.Automation.Runspaces
/// initialize default values of preference vars
///
/// Does not return a value.
- ///
-
private void InitializeDefaults()
{
SessionStateInternal ss = _engine.Context.EngineSessionState;
diff --git a/src/System.Management.Automation/engine/regex.cs b/src/System.Management.Automation/engine/regex.cs
index 1626b176cf..c923d110ac 100644
--- a/src/System.Management.Automation/engine/regex.cs
+++ b/src/System.Management.Automation/engine/regex.cs
@@ -142,7 +142,6 @@ namespace System.Management.Automation
/// Instantiate internal regex member if not already done.
///
/// True on success, false otherwise.
- ///
private void Init()
{
if (_isMatch == null)
diff --git a/src/System.Management.Automation/security/Authenticode.cs b/src/System.Management.Automation/security/Authenticode.cs
index 2c792cf880..de73a33dba 100644
--- a/src/System.Management.Automation/security/Authenticode.cs
+++ b/src/System.Management.Automation/security/Authenticode.cs
@@ -89,7 +89,6 @@ namespace System.Management.Automation
///
/// Thrown if the file specified by argument fileName is not found
///
- ///
[ArchitectureSensitive]
internal static Signature SignFile(SigningOption option,
string fileName,
@@ -269,7 +268,6 @@ namespace System.Management.Automation
///
/// Thrown if the file specified by argument fileName is not found.
///
- ///
[ArchitectureSensitive]
internal static Signature GetSignature(string fileName, string fileContent)
{
diff --git a/src/System.Management.Automation/security/MshSignature.cs b/src/System.Management.Automation/security/MshSignature.cs
index 98fdcc1abe..9eaca93479 100644
--- a/src/System.Management.Automation/security/MshSignature.cs
+++ b/src/System.Management.Automation/security/MshSignature.cs
@@ -195,7 +195,6 @@ namespace System.Management.Automation
/// cert of the signer
/// cert of the time stamper
/// Constructed object.
- ///
internal Signature(string filePath,
DWORD error,
X509Certificate2 signer,
@@ -216,7 +215,6 @@ namespace System.Management.Automation
/// this signature is found in this file
/// cert of the signer
/// Constructed object.
- ///
internal Signature(string filePath,
X509Certificate2 signer)
{
@@ -235,7 +233,6 @@ namespace System.Management.Automation
/// win32 error code
/// cert of the signer
/// Constructed object.
- ///
internal Signature(string filePath,
DWORD error,
X509Certificate2 signer)
@@ -254,7 +251,6 @@ namespace System.Management.Automation
/// this signature is found in this file
/// win32 error code
/// Constructed object.
- ///
internal Signature(string filePath, DWORD error)
{
Utils.CheckArgForNullOrEmpty(filePath, "filePath");
diff --git a/src/System.Management.Automation/security/SecureStringHelper.cs b/src/System.Management.Automation/security/SecureStringHelper.cs
index ba60a70dd6..b6d73c6ebb 100644
--- a/src/System.Management.Automation/security/SecureStringHelper.cs
+++ b/src/System.Management.Automation/security/SecureStringHelper.cs
@@ -203,8 +203,7 @@ namespace Microsoft.PowerShell
///
/// input string to encrypt
/// encryption key
- /// A string (see summary) .
- ///
+ /// A string (see summary).
internal static EncryptionResult Encrypt(SecureString input, SecureString key)
{
EncryptionResult output = null;
@@ -233,8 +232,7 @@ namespace Microsoft.PowerShell
///
/// input string to encrypt
/// encryption key
- /// A string (see summary) .
- ///
+ /// A string (see summary).
internal static EncryptionResult Encrypt(SecureString input, byte[] key)
{
return Encrypt(input, key, null);
diff --git a/src/System.Management.Automation/security/SecuritySupport.cs b/src/System.Management.Automation/security/SecuritySupport.cs
index 8002c2afea..a0289063f6 100644
--- a/src/System.Management.Automation/security/SecuritySupport.cs
+++ b/src/System.Management.Automation/security/SecuritySupport.cs
@@ -582,7 +582,6 @@ namespace System.Management.Automation.Internal
///
/// path to file
/// Does not return a value.
- ///
internal static void CheckIfFileExists(string filePath)
{
if (!File.Exists(filePath))
@@ -597,7 +596,6 @@ namespace System.Management.Automation.Internal
///
/// certificate object
/// True on success, false otherwise.
- ///
internal static bool CertIsGoodForSigning(X509Certificate2 c)
{
if (!CertHasPrivatekey(c))
@@ -615,7 +613,6 @@ namespace System.Management.Automation.Internal
///
/// certificate object
/// True on success, false otherwise.
- ///
internal static bool CertIsGoodForEncryption(X509Certificate2 c)
{
return (
@@ -663,7 +660,6 @@ namespace System.Management.Automation.Internal
///
/// certificate object
/// True on success, false otherwise.
- ///
internal static bool CertHasPrivatekey(X509Certificate2 cert)
{
return cert.HasPrivateKey;
@@ -674,7 +670,6 @@ namespace System.Management.Automation.Internal
///
/// certificate object
/// A collection of cert eku strings.
- ///
[ArchitectureSensitive]
internal static Collection GetCertEKU(X509Certificate2 cert)
{
@@ -733,7 +728,6 @@ namespace System.Management.Automation.Internal
///
/// signed int number
/// DWORD.
- ///
internal static DWORD GetDWORDFromInt(int n)
{
UInt32 result = BitConverter.ToUInt32(BitConverter.GetBytes(n), 0);
@@ -745,7 +739,6 @@ namespace System.Management.Automation.Internal
///
/// number
/// Int.
- ///
internal static int GetIntFromDWORD(DWORD n)
{
Int64 n64 = n - 0x100000000L;