From 65077bcd05cf56e8bee234f5b816aae01a16722f Mon Sep 17 00:00:00 2001 From: xtqqczze Date: Thu, 19 Nov 2020 12:28:16 +0000 Subject: [PATCH 1/2] Fix SA1642 for Microsoft.PowerShell.Commands.Utility --- .../commands/utility/ConsoleColorCmdlet.cs | 1 + .../commands/utility/CsvCommands.cs | 1 + .../commands/utility/CustomSerialization.cs | 3 +++ .../commands/utility/EnableDisableRunspaceDebugCommand.cs | 1 + .../FormatAndOutput/OutGridView/OutGridViewCommand.cs | 1 + .../utility/FormatAndOutput/OutGridView/OutWindowProxy.cs | 2 +- .../utility/FormatAndOutput/format-list/Format-List.cs | 1 + .../utility/FormatAndOutput/format-object/Format-Object.cs | 1 + .../utility/FormatAndOutput/format-table/Format-Table.cs | 1 + .../utility/FormatAndOutput/format-wide/Format-Wide.cs | 1 + .../commands/utility/FormatAndOutput/out-file/Out-File.cs | 1 + .../utility/FormatAndOutput/out-printer/Out-Printer.cs | 1 + .../utility/FormatAndOutput/out-printer/PrinterLineOutput.cs | 2 ++ .../utility/FormatAndOutput/out-string/Out-String.cs | 1 + .../commands/utility/GetMember.cs | 1 + .../commands/utility/GetRandomCommand.cs | 1 + .../commands/utility/Measure-Object.cs | 5 +++++ .../commands/utility/ObjectCommandComparer.cs | 2 ++ .../commands/utility/OrderObjectBase.cs | 1 + .../commands/utility/ReadConsoleCmdlet.cs | 1 + .../commands/utility/Select-Object.cs | 1 + .../commands/utility/ShowCommand/ShowCommandCommandInfo.cs | 2 ++ .../commands/utility/ShowCommand/ShowCommandModuleInfo.cs | 2 ++ .../commands/utility/ShowCommand/ShowCommandParameterInfo.cs | 2 ++ .../utility/ShowCommand/ShowCommandParameterSetInfo.cs | 2 ++ .../commands/utility/ShowCommand/ShowCommandParameterType.cs | 2 ++ .../WebCmdlet/Common/BasicHtmlWebResponseObject.Common.cs | 2 ++ .../utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs | 1 + .../utility/WebCmdlet/Common/WebResponseObject.Common.cs | 2 ++ .../WebCmdlet/CoreCLR/InvokeWebRequestCommand.CoreClr.cs | 1 + .../commands/utility/WebCmdlet/FormObject.cs | 1 + .../commands/utility/WebCmdlet/StreamHelper.cs | 1 + .../commands/utility/WebCmdlet/WebRequestSession.cs | 1 + .../commands/utility/Write.cs | 5 +++++ .../commands/utility/trace/MshHostTraceListener.cs | 1 + 35 files changed, 54 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ConsoleColorCmdlet.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ConsoleColorCmdlet.cs index 778c9b3573f..55ac102bcfa 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ConsoleColorCmdlet.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ConsoleColorCmdlet.cs @@ -14,6 +14,7 @@ namespace Microsoft.PowerShell.Commands class ConsoleColorCmdlet : PSCmdlet { /// + /// Initializes a new instance of the class. /// Default ctor. /// public ConsoleColorCmdlet() diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CsvCommands.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CsvCommands.cs index 7e9c34531ec..aec29a39ce0 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CsvCommands.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CsvCommands.cs @@ -883,6 +883,7 @@ internal class ExportCsvHelper : IDisposable private readonly StringBuilder _outputString; /// + /// Initializes a new instance of the class. /// Create ExportCsvHelper instance. /// /// Delimiter char. diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CustomSerialization.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CustomSerialization.cs index 61c0ab2c146..e8f328d7855 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CustomSerialization.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CustomSerialization.cs @@ -38,6 +38,7 @@ internal class CustomSerialization private CustomInternalSerializer _serializer; /// + /// Initializes a new instance of the class. /// Constructor. /// /// @@ -74,6 +75,7 @@ internal CustomSerialization(XmlWriter writer, bool notypeinformation, int depth public static int MshDefaultSerializationDepth { get; } = 1; /// + /// Initializes a new instance of the class. /// Constructor. /// /// @@ -208,6 +210,7 @@ internal class private bool _firstobjectcall = true; /// + /// Initializes a new instance of the class. /// Constructor. /// /// diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/EnableDisableRunspaceDebugCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/EnableDisableRunspaceDebugCommand.cs index 62e7b4a8d0f..7e648fb9de7 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/EnableDisableRunspaceDebugCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/EnableDisableRunspaceDebugCommand.cs @@ -51,6 +51,7 @@ public sealed class PSRunspaceDebug #region Constructors /// + /// Initializes a new instance of the class. /// Constructor. /// /// Enable debugger option. diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutGridViewCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutGridViewCommand.cs index e5c418044fe..9ce1f66055d 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutGridViewCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutGridViewCommand.cs @@ -54,6 +54,7 @@ public class OutGridViewCommand : PSCmdlet, IDisposable #region Constructors /// + /// Initializes a new instance of the class. /// Constructor for OutGridView. /// public OutGridViewCommand() diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutWindowProxy.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutWindowProxy.cs index 446b2f2568f..3f22caf1e7b 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutWindowProxy.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutWindowProxy.cs @@ -39,7 +39,7 @@ internal class OutWindowProxy : IDisposable private readonly GraphicalHostReflectionWrapper _graphicalHostReflectionWrapper; /// - /// Initializes a new instance of the OutWindowProxy class. + /// Initializes a new instance of the class. /// internal OutWindowProxy(string title, OutputModeOption outPutMode, OutGridViewCommand parentCmdlet) { diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-list/Format-List.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-list/Format-List.cs index f258d807345..3423356f0fb 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-list/Format-List.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-list/Format-List.cs @@ -14,6 +14,7 @@ namespace Microsoft.PowerShell.Commands public class FormatListCommand : OuterFormatTableAndListBase { /// + /// Initializes a new instance of the class. /// Constructor to set the inner command. /// public FormatListCommand() diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-object/Format-Object.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-object/Format-Object.cs index 6bff32403f3..4614843a782 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-object/Format-Object.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-object/Format-Object.cs @@ -14,6 +14,7 @@ namespace Microsoft.PowerShell.Commands public class FormatCustomCommand : OuterFormatShapeCommandBase { /// + /// Initializes a new instance of the class. /// Constructor to se the inner command. /// public FormatCustomCommand() diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-table/Format-Table.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-table/Format-Table.cs index 43991282c25..9fe990e9003 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-table/Format-Table.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-table/Format-Table.cs @@ -14,6 +14,7 @@ namespace Microsoft.PowerShell.Commands public class FormatTableCommand : OuterFormatTableBase { /// + /// Initializes a new instance of the class. /// Constructor to set the inner command. /// public FormatTableCommand() diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-wide/Format-Wide.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-wide/Format-Wide.cs index 459dabf9555..01cd1538a28 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-wide/Format-Wide.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-wide/Format-Wide.cs @@ -16,6 +16,7 @@ namespace Microsoft.PowerShell.Commands public class FormatWideCommand : OuterFormatShapeCommandBase { /// + /// Initializes a new instance of the class. /// Constructor to se the inner command. /// public FormatWideCommand() diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-file/Out-File.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-file/Out-File.cs index cfa0c86c226..ed53967440d 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-file/Out-File.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-file/Out-File.cs @@ -25,6 +25,7 @@ internal static FileMode Convert(OpenMode openMode) public class OutFileCommand : FrontEndCommandBase { /// + /// Initializes a new instance of the class. /// Set inner command. /// public OutFileCommand() diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/Out-Printer.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/Out-Printer.cs index 33416cdea0a..8a8d4af3fbb 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/Out-Printer.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/Out-Printer.cs @@ -14,6 +14,7 @@ namespace Microsoft.PowerShell.Commands public class OutPrinterCommand : FrontEndCommandBase { /// + /// Initializes a new instance of the class. /// Set inner command. /// public OutPrinterCommand() diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/PrinterLineOutput.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/PrinterLineOutput.cs index 4eecbb5d859..7079db46693 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/PrinterLineOutput.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/PrinterLineOutput.cs @@ -70,6 +70,7 @@ internal override void WriteLine(string s) #endregion /// + /// Initializes static members of the class. /// Used for static initializations like DefaultPrintFontName. /// static PrinterLineOutput() @@ -81,6 +82,7 @@ static PrinterLineOutput() } /// + /// Initializes a new instance of the class. /// Constructor for the class. /// /// Name of printer, if null use default printer. diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-string/Out-String.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-string/Out-String.cs index 4199ef0dd68..033726a8a5a 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-string/Out-String.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-string/Out-String.cs @@ -61,6 +61,7 @@ public SwitchParameter NoNewline #endregion /// + /// Initializes a new instance of the class. /// Set inner command. /// public OutStringCommand() diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetMember.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetMember.cs index a47cf0352e9..afe31acf6f8 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetMember.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetMember.cs @@ -22,6 +22,7 @@ public override string ToString() return Definition; } /// + /// Initializes a new instance of the class. /// Initializes a new instance of this class. /// public MemberDefinition(string typeName, string name, PSMemberTypes memberType, string definition) diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetRandomCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetRandomCommand.cs index 8830a6793eb..68d95b71b9b 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetRandomCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetRandomCommand.cs @@ -583,6 +583,7 @@ protected override void EndProcessing() internal class PolymorphicRandomNumberGenerator { /// + /// Initializes a new instance of the class. /// Constructor. /// public PolymorphicRandomNumberGenerator() diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Measure-Object.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Measure-Object.cs index 9a6edeb3bb6..a2c261f5578 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Measure-Object.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Measure-Object.cs @@ -27,6 +27,7 @@ public abstract class MeasureInfo public sealed class GenericMeasureInfo : MeasureInfo { /// + /// Initializes a new instance of the class. /// Default ctor. /// public GenericMeasureInfo() @@ -77,6 +78,7 @@ public GenericMeasureInfo() public sealed class GenericObjectMeasureInfo : MeasureInfo { /// + /// Initializes a new instance of the class. /// Default ctor. /// public GenericObjectMeasureInfo() @@ -122,6 +124,7 @@ public GenericObjectMeasureInfo() public sealed class TextMeasureInfo : MeasureInfo { /// + /// Initializes a new instance of the class. /// Default ctor. /// public TextMeasureInfo() @@ -162,6 +165,7 @@ private class MeasureObjectDictionary : Dictionary where V : new() { /// + /// Initializes a new instance of the class. /// Default ctor. /// internal MeasureObjectDictionary() : base(StringComparer.OrdinalIgnoreCase) @@ -216,6 +220,7 @@ private class Statistics } /// + /// Initializes a new instance of the class. /// Default constructor. /// public MeasureObjectCommand() diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ObjectCommandComparer.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ObjectCommandComparer.cs index 75ed294294d..ffbc3d2d82b 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ObjectCommandComparer.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ObjectCommandComparer.cs @@ -30,6 +30,7 @@ internal ObjectCommandPropertyValue(object propVal) } /// + /// Initializes a new instance of the class. /// ObjectCommandPropertyValue constructor. /// /// Property Value. @@ -139,6 +140,7 @@ public override int GetHashCode() internal class ObjectCommandComparer : IComparer { /// + /// Initializes a new instance of the class. /// Constructor that doesn't set any private field. /// Necessary because compareTo can compare two objects by calling /// ((ICompare)obj1).CompareTo(obj2) without using a key. diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/OrderObjectBase.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/OrderObjectBase.cs index 75fc816abf2..4b456047a76 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/OrderObjectBase.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/OrderObjectBase.cs @@ -478,6 +478,7 @@ bool caseSensitive } /// + /// Initializes a new instance of the class. /// OrderByProperty constructor. /// internal OrderByProperty() diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ReadConsoleCmdlet.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ReadConsoleCmdlet.cs index 0b70e9308d0..07b9a40e240 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ReadConsoleCmdlet.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ReadConsoleCmdlet.cs @@ -20,6 +20,7 @@ namespace Microsoft.PowerShell.Commands public sealed class ReadHostCommand : PSCmdlet { /// + /// Initializes a new instance of the class. /// Constructs a new instance. /// public diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Select-Object.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Select-Object.cs index a7df66cf128..9df56100a9c 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Select-Object.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Select-Object.cs @@ -18,6 +18,7 @@ namespace Microsoft.PowerShell.Commands internal sealed class PSPropertyExpressionFilter { /// + /// Initializes a new instance of the class. /// Construct the class, using an array of patterns. /// /// Array of pattern strings to use. diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandCommandInfo.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandCommandInfo.cs index 1450555d8d7..9c481f5f188 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandCommandInfo.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandCommandInfo.cs @@ -14,6 +14,7 @@ namespace Microsoft.PowerShell.Commands.ShowCommandExtension public class ShowCommandCommandInfo { /// + /// Initializes a new instance of the class. /// Creates an instance of the ShowCommandCommandInfo class based on a CommandInfo object. /// /// @@ -62,6 +63,7 @@ public ShowCommandCommandInfo(CommandInfo other) } /// + /// Initializes a new instance of the class. /// Creates an instance of the ShowCommandCommandInfo class based on a PSObject object. /// /// diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandModuleInfo.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandModuleInfo.cs index 6e0f7c97012..77a9e0b2be6 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandModuleInfo.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandModuleInfo.cs @@ -12,6 +12,7 @@ namespace Microsoft.PowerShell.Commands.ShowCommandExtension public class ShowCommandModuleInfo { /// + /// Initializes a new instance of the class. /// Creates an instance of the ShowCommandModuleInfo class based on a CommandInfo object. /// /// @@ -28,6 +29,7 @@ public ShowCommandModuleInfo(PSModuleInfo other) } /// + /// Initializes a new instance of the class. /// Creates an instance of the ShowCommandModuleInfo class based on a PSObject object. /// /// diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterInfo.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterInfo.cs index 22b3f692694..be59cfda6d2 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterInfo.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterInfo.cs @@ -14,6 +14,7 @@ namespace Microsoft.PowerShell.Commands.ShowCommandExtension public class ShowCommandParameterInfo { /// + /// Initializes a new instance of the class. /// Creates an instance of the ShowCommandParameterInfo class based on a CommandParameterInfo object. /// /// @@ -41,6 +42,7 @@ public ShowCommandParameterInfo(CommandParameterInfo other) } /// + /// Initializes a new instance of the class. /// Creates an instance of the ShowCommandParameterInfo class based on a PSObject object. /// /// diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterSetInfo.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterSetInfo.cs index b8c906a2266..2018f9acb29 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterSetInfo.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterSetInfo.cs @@ -14,6 +14,7 @@ namespace Microsoft.PowerShell.Commands.ShowCommandExtension public class ShowCommandParameterSetInfo { /// + /// Initializes a new instance of the class. /// Creates an instance of the ShowCommandParameterSetInfo class based on a CommandParameterSetInfo object. /// /// @@ -32,6 +33,7 @@ public ShowCommandParameterSetInfo(CommandParameterSetInfo other) } /// + /// Initializes a new instance of the class. /// Creates an instance of the ShowCommandParameterSetInfo class based on a PSObject object. /// /// diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterType.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterType.cs index c0bbb644d3c..32a4ac31107 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterType.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterType.cs @@ -13,6 +13,7 @@ namespace Microsoft.PowerShell.Commands.ShowCommandExtension public class ShowCommandParameterType { /// + /// Initializes a new instance of the class. /// Creates an instance of the ShowCommandParameterType class based on a Type object. /// /// @@ -42,6 +43,7 @@ public ShowCommandParameterType(Type other) } /// + /// Initializes a new instance of the class. /// Creates an instance of the ShowCommandParameterType class based on a Type object. /// /// diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/BasicHtmlWebResponseObject.Common.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/BasicHtmlWebResponseObject.Common.cs index f3e04e76462..800c22e4714 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/BasicHtmlWebResponseObject.Common.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/BasicHtmlWebResponseObject.Common.cs @@ -30,6 +30,7 @@ public class BasicHtmlWebResponseObject : WebResponseObject #region Constructors /// + /// Initializes a new instance of the class. /// Constructor for BasicHtmlWebResponseObject. /// /// @@ -38,6 +39,7 @@ public BasicHtmlWebResponseObject(HttpResponseMessage response) { } /// + /// Initializes a new instance of the class. /// Constructor for HtmlWebResponseObject with memory stream. /// /// diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs index d13cecdf543..0b1617f13f5 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs @@ -863,6 +863,7 @@ private void ProcessAuthentication() public sealed class HttpResponseException : HttpRequestException { /// + /// Initializes a new instance of the class. /// Constructor for HttpResponseException. /// /// Message for the exception. diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebResponseObject.Common.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebResponseObject.Common.cs index 70c5721dbc1..ff88e858510 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebResponseObject.Common.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebResponseObject.Common.cs @@ -144,6 +144,7 @@ public Dictionary> Headers #region Constructors /// + /// Initializes a new instance of the class. /// Constructor for WebResponseObject. /// /// @@ -152,6 +153,7 @@ public WebResponseObject(HttpResponseMessage response) { } /// + /// Initializes a new instance of the class. /// Constructor for WebResponseObject with contentStream. /// /// diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/CoreCLR/InvokeWebRequestCommand.CoreClr.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/CoreCLR/InvokeWebRequestCommand.CoreClr.cs index b0f849490cd..3c0daa7898c 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/CoreCLR/InvokeWebRequestCommand.CoreClr.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/CoreCLR/InvokeWebRequestCommand.CoreClr.cs @@ -18,6 +18,7 @@ public class InvokeWebRequestCommand : WebRequestPSCmdlet #region Virtual Method Overrides /// + /// Initializes a new instance of the class. /// Default constructor for InvokeWebRequestCommand. /// public InvokeWebRequestCommand() : base() diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/FormObject.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/FormObject.cs index ff9122dc395..eea44d548e5 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/FormObject.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/FormObject.cs @@ -31,6 +31,7 @@ public class FormObject public Dictionary Fields { get; } /// + /// Initializes a new instance of the class. /// Constructor for FormObject. /// /// diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/StreamHelper.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/StreamHelper.cs index 7d2eaefcfc1..72367746658 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/StreamHelper.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/StreamHelper.cs @@ -32,6 +32,7 @@ internal class WebResponseContentMemoryStream : MemoryStream #region Constructors /// + /// Initializes a new instance of the class. /// /// /// diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebRequestSession.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebRequestSession.cs index a28f07c842c..363e5c34260 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebRequestSession.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebRequestSession.cs @@ -75,6 +75,7 @@ public class WebRequestSession public int RetryIntervalInSeconds { get; set; } /// + /// Initializes a new instance of the class. /// Construct a new instance of a WebRequestSession object. /// public WebRequestSession() diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Write.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Write.cs index 6f374336da5..ca57c09e3de 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Write.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Write.cs @@ -393,6 +393,7 @@ protected override void ProcessRecord() public sealed class WriteErrorCommand : WriteOrThrowErrorCommand { /// + /// Initializes a new instance of the class. /// Constructor. /// public WriteErrorCommand() @@ -433,6 +434,7 @@ public class WriteErrorException : SystemException { #region ctor /// + /// Initializes a new instance of the class. /// Constructor for class WriteErrorException. /// /// Constructed object. @@ -442,6 +444,7 @@ public WriteErrorException() } /// + /// Initializes a new instance of the class. /// Constructor for class WriteErrorException. /// /// @@ -452,6 +455,7 @@ public WriteErrorException(string message) } /// + /// Initializes a new instance of the class. /// Constructor for class WriteErrorException. /// /// @@ -466,6 +470,7 @@ public WriteErrorException(string message, #region Serialization /// + /// Initializes a new instance of the class. /// Serialization constructor for class WriteErrorException. /// /// Serialization information. diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/trace/MshHostTraceListener.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/trace/MshHostTraceListener.cs index 0488fb9710f..e2dcc2a0e43 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/trace/MshHostTraceListener.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/trace/MshHostTraceListener.cs @@ -23,6 +23,7 @@ internal class PSHostTraceListener #region TraceListener constructors and disposer /// + /// Initializes a new instance of the class. /// Default constructor used if no. /// internal PSHostTraceListener(PSCmdlet cmdlet) From 6c6ad6d1a5748b3db82f6537a7c517a5fed7eeff Mon Sep 17 00:00:00 2001 From: xtqqczze Date: Thu, 19 Nov 2020 13:34:26 +0000 Subject: [PATCH 2/2] Replace summary text --- .../commands/utility/ConsoleColorCmdlet.cs | 1 - .../commands/utility/CsvCommands.cs | 1 - .../commands/utility/CustomSerialization.cs | 3 --- .../commands/utility/EnableDisableRunspaceDebugCommand.cs | 1 - .../FormatAndOutput/OutGridView/OutGridViewCommand.cs | 1 - .../utility/FormatAndOutput/format-list/Format-List.cs | 4 ++-- .../FormatAndOutput/format-object/Format-Object.cs | 4 ++-- .../utility/FormatAndOutput/format-table/Format-Table.cs | 4 ++-- .../utility/FormatAndOutput/format-wide/Format-Wide.cs | 4 ++-- .../commands/utility/FormatAndOutput/out-file/Out-File.cs | 4 ++-- .../utility/FormatAndOutput/out-printer/Out-Printer.cs | 4 ++-- .../FormatAndOutput/out-printer/PrinterLineOutput.cs | 1 - .../utility/FormatAndOutput/out-string/Out-String.cs | 4 ++-- .../commands/utility/GetMember.cs | 1 - .../commands/utility/GetRandomCommand.cs | 1 - .../commands/utility/Measure-Object.cs | 1 - .../commands/utility/ObjectCommandComparer.cs | 1 - .../commands/utility/OrderObjectBase.cs | 1 - .../commands/utility/ReadConsoleCmdlet.cs | 1 - .../commands/utility/Select-Object.cs | 4 ++-- .../utility/ShowCommand/ShowCommandCommandInfo.cs | 8 ++++---- .../commands/utility/ShowCommand/ShowCommandModuleInfo.cs | 8 ++++---- .../utility/ShowCommand/ShowCommandParameterInfo.cs | 4 ++-- .../utility/ShowCommand/ShowCommandParameterSetInfo.cs | 8 ++++---- .../utility/ShowCommand/ShowCommandParameterType.cs | 8 ++++---- .../WebCmdlet/Common/BasicHtmlWebResponseObject.Common.cs | 5 ++--- .../utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs | 1 - .../utility/WebCmdlet/Common/WebResponseObject.Common.cs | 5 ++--- .../WebCmdlet/CoreCLR/InvokeWebRequestCommand.CoreClr.cs | 1 - .../commands/utility/WebCmdlet/FormObject.cs | 1 - .../commands/utility/WebCmdlet/WebRequestSession.cs | 1 - .../commands/utility/Write.cs | 7 +------ .../commands/utility/trace/MshHostTraceListener.cs | 1 - 33 files changed, 39 insertions(+), 65 deletions(-) diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ConsoleColorCmdlet.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ConsoleColorCmdlet.cs index 55ac102bcfa..3c3fde6cc61 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ConsoleColorCmdlet.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ConsoleColorCmdlet.cs @@ -15,7 +15,6 @@ class ConsoleColorCmdlet : PSCmdlet { /// /// Initializes a new instance of the class. - /// Default ctor. /// public ConsoleColorCmdlet() { diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CsvCommands.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CsvCommands.cs index aec29a39ce0..bd1e2fea05f 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CsvCommands.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CsvCommands.cs @@ -884,7 +884,6 @@ internal class ExportCsvHelper : IDisposable /// /// Initializes a new instance of the class. - /// Create ExportCsvHelper instance. /// /// Delimiter char. /// Kind of quoting. diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CustomSerialization.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CustomSerialization.cs index e8f328d7855..92d67d134d2 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CustomSerialization.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CustomSerialization.cs @@ -39,7 +39,6 @@ internal class CustomSerialization /// /// Initializes a new instance of the class. - /// Constructor. /// /// /// writer to be used for serialization. @@ -76,7 +75,6 @@ internal CustomSerialization(XmlWriter writer, bool notypeinformation, int depth /// /// Initializes a new instance of the class. - /// Constructor. /// /// /// writer to be used for serialization. @@ -211,7 +209,6 @@ internal class /// /// Initializes a new instance of the class. - /// Constructor. /// /// /// Xml writer to be used. diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/EnableDisableRunspaceDebugCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/EnableDisableRunspaceDebugCommand.cs index 7e648fb9de7..177980aec94 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/EnableDisableRunspaceDebugCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/EnableDisableRunspaceDebugCommand.cs @@ -52,7 +52,6 @@ public sealed class PSRunspaceDebug /// /// Initializes a new instance of the class. - /// Constructor. /// /// Enable debugger option. /// BreakAll option. diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutGridViewCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutGridViewCommand.cs index 9ce1f66055d..96a06a71070 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutGridViewCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutGridViewCommand.cs @@ -55,7 +55,6 @@ public class OutGridViewCommand : PSCmdlet, IDisposable /// /// Initializes a new instance of the class. - /// Constructor for OutGridView. /// public OutGridViewCommand() { diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-list/Format-List.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-list/Format-List.cs index 3423356f0fb..7237cd46834 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-list/Format-List.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-list/Format-List.cs @@ -14,8 +14,8 @@ namespace Microsoft.PowerShell.Commands public class FormatListCommand : OuterFormatTableAndListBase { /// - /// Initializes a new instance of the class. - /// Constructor to set the inner command. + /// Initializes a new instance of the class + /// and sets the inner command. /// public FormatListCommand() { diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-object/Format-Object.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-object/Format-Object.cs index 4614843a782..b2052555622 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-object/Format-Object.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-object/Format-Object.cs @@ -14,8 +14,8 @@ namespace Microsoft.PowerShell.Commands public class FormatCustomCommand : OuterFormatShapeCommandBase { /// - /// Initializes a new instance of the class. - /// Constructor to se the inner command. + /// Initializes a new instance of the class + /// and sets the inner command. /// public FormatCustomCommand() { diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-table/Format-Table.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-table/Format-Table.cs index 9fe990e9003..e831981568e 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-table/Format-Table.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-table/Format-Table.cs @@ -14,8 +14,8 @@ namespace Microsoft.PowerShell.Commands public class FormatTableCommand : OuterFormatTableBase { /// - /// Initializes a new instance of the class. - /// Constructor to set the inner command. + /// Initializes a new instance of the class + /// and sets the inner command. /// public FormatTableCommand() { diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-wide/Format-Wide.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-wide/Format-Wide.cs index 01cd1538a28..923dc1bdb5c 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-wide/Format-Wide.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-wide/Format-Wide.cs @@ -16,8 +16,8 @@ namespace Microsoft.PowerShell.Commands public class FormatWideCommand : OuterFormatShapeCommandBase { /// - /// Initializes a new instance of the class. - /// Constructor to se the inner command. + /// Initializes a new instance of the class + /// and sets the inner command. /// public FormatWideCommand() { diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-file/Out-File.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-file/Out-File.cs index ed53967440d..751b2b32c72 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-file/Out-File.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-file/Out-File.cs @@ -25,8 +25,8 @@ internal static FileMode Convert(OpenMode openMode) public class OutFileCommand : FrontEndCommandBase { /// - /// Initializes a new instance of the class. - /// Set inner command. + /// Initializes a new instance of the class + /// and sets the inner command. /// public OutFileCommand() { diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/Out-Printer.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/Out-Printer.cs index 8a8d4af3fbb..166613365b0 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/Out-Printer.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/Out-Printer.cs @@ -14,8 +14,8 @@ namespace Microsoft.PowerShell.Commands public class OutPrinterCommand : FrontEndCommandBase { /// - /// Initializes a new instance of the class. - /// Set inner command. + /// Initializes a new instance of the class + /// and sets the inner command. /// public OutPrinterCommand() { diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/PrinterLineOutput.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/PrinterLineOutput.cs index 7079db46693..e218ac9d6dd 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/PrinterLineOutput.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/PrinterLineOutput.cs @@ -83,7 +83,6 @@ static PrinterLineOutput() /// /// Initializes a new instance of the class. - /// Constructor for the class. /// /// Name of printer, if null use default printer. internal PrinterLineOutput(string printerName) diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-string/Out-String.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-string/Out-String.cs index 033726a8a5a..48727c201dc 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-string/Out-String.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-string/Out-String.cs @@ -61,8 +61,8 @@ public SwitchParameter NoNewline #endregion /// - /// Initializes a new instance of the class. - /// Set inner command. + /// Initializes a new instance of the class + /// and sets the inner command. /// public OutStringCommand() { diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetMember.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetMember.cs index afe31acf6f8..2f47c0d4c25 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetMember.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetMember.cs @@ -23,7 +23,6 @@ public override string ToString() } /// /// Initializes a new instance of the class. - /// Initializes a new instance of this class. /// public MemberDefinition(string typeName, string name, PSMemberTypes memberType, string definition) { diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetRandomCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetRandomCommand.cs index 68d95b71b9b..d84c866ad75 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetRandomCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetRandomCommand.cs @@ -584,7 +584,6 @@ internal class PolymorphicRandomNumberGenerator { /// /// Initializes a new instance of the class. - /// Constructor. /// public PolymorphicRandomNumberGenerator() { diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Measure-Object.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Measure-Object.cs index a2c261f5578..6898b0cfc4e 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Measure-Object.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Measure-Object.cs @@ -28,7 +28,6 @@ public sealed class GenericMeasureInfo : MeasureInfo { /// /// Initializes a new instance of the class. - /// Default ctor. /// public GenericMeasureInfo() { diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ObjectCommandComparer.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ObjectCommandComparer.cs index ffbc3d2d82b..21cf7f3e15c 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ObjectCommandComparer.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ObjectCommandComparer.cs @@ -31,7 +31,6 @@ internal ObjectCommandPropertyValue(object propVal) /// /// Initializes a new instance of the class. - /// ObjectCommandPropertyValue constructor. /// /// Property Value. /// Indicates if the Property value comparison has to be case sensitive or not. diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/OrderObjectBase.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/OrderObjectBase.cs index 4b456047a76..6e9f28e172e 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/OrderObjectBase.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/OrderObjectBase.cs @@ -479,7 +479,6 @@ bool caseSensitive /// /// Initializes a new instance of the class. - /// OrderByProperty constructor. /// internal OrderByProperty() { diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ReadConsoleCmdlet.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ReadConsoleCmdlet.cs index 07b9a40e240..a627e80733e 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ReadConsoleCmdlet.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ReadConsoleCmdlet.cs @@ -21,7 +21,6 @@ public sealed class ReadHostCommand : PSCmdlet { /// /// Initializes a new instance of the class. - /// Constructs a new instance. /// public ReadHostCommand() diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Select-Object.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Select-Object.cs index 9df56100a9c..4fd27e4d007 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Select-Object.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Select-Object.cs @@ -18,8 +18,8 @@ namespace Microsoft.PowerShell.Commands internal sealed class PSPropertyExpressionFilter { /// - /// Initializes a new instance of the class. - /// Construct the class, using an array of patterns. + /// Initializes a new instance of the class + /// with the specified array of patterns. /// /// Array of pattern strings to use. internal PSPropertyExpressionFilter(string[] wildcardPatternsStrings) diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandCommandInfo.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandCommandInfo.cs index 9c481f5f188..e3de5cac296 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandCommandInfo.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandCommandInfo.cs @@ -14,8 +14,8 @@ namespace Microsoft.PowerShell.Commands.ShowCommandExtension public class ShowCommandCommandInfo { /// - /// Initializes a new instance of the class. - /// Creates an instance of the ShowCommandCommandInfo class based on a CommandInfo object. + /// Initializes a new instance of the class + /// with the specified . /// /// /// The object to wrap. @@ -63,8 +63,8 @@ public ShowCommandCommandInfo(CommandInfo other) } /// - /// Initializes a new instance of the class. - /// Creates an instance of the ShowCommandCommandInfo class based on a PSObject object. + /// Initializes a new instance of the class + /// with the specified . /// /// /// The object to wrap. diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandModuleInfo.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandModuleInfo.cs index 77a9e0b2be6..b12cc5651f4 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandModuleInfo.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandModuleInfo.cs @@ -12,8 +12,8 @@ namespace Microsoft.PowerShell.Commands.ShowCommandExtension public class ShowCommandModuleInfo { /// - /// Initializes a new instance of the class. - /// Creates an instance of the ShowCommandModuleInfo class based on a CommandInfo object. + /// Initializes a new instance of the class + /// with the specified . /// /// /// The object to wrap. @@ -29,8 +29,8 @@ public ShowCommandModuleInfo(PSModuleInfo other) } /// - /// Initializes a new instance of the class. - /// Creates an instance of the ShowCommandModuleInfo class based on a PSObject object. + /// Initializes a new instance of the class + /// with the specified . /// /// /// The object to wrap. diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterInfo.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterInfo.cs index be59cfda6d2..04a74b4fc45 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterInfo.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterInfo.cs @@ -14,8 +14,8 @@ namespace Microsoft.PowerShell.Commands.ShowCommandExtension public class ShowCommandParameterInfo { /// - /// Initializes a new instance of the class. - /// Creates an instance of the ShowCommandParameterInfo class based on a CommandParameterInfo object. + /// Initializes a new instance of the class + /// with the specified . /// /// /// The object to wrap. diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterSetInfo.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterSetInfo.cs index 2018f9acb29..fb25e2e4745 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterSetInfo.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterSetInfo.cs @@ -14,8 +14,8 @@ namespace Microsoft.PowerShell.Commands.ShowCommandExtension public class ShowCommandParameterSetInfo { /// - /// Initializes a new instance of the class. - /// Creates an instance of the ShowCommandParameterSetInfo class based on a CommandParameterSetInfo object. + /// Initializes a new instance of the class + /// with the specified . /// /// /// The object to wrap. @@ -33,8 +33,8 @@ public ShowCommandParameterSetInfo(CommandParameterSetInfo other) } /// - /// Initializes a new instance of the class. - /// Creates an instance of the ShowCommandParameterSetInfo class based on a PSObject object. + /// Initializes a new instance of the class + /// with the specified . /// /// /// The object to wrap. diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterType.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterType.cs index 32a4ac31107..1daf0350dbc 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterType.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterType.cs @@ -13,8 +13,8 @@ namespace Microsoft.PowerShell.Commands.ShowCommandExtension public class ShowCommandParameterType { /// - /// Initializes a new instance of the class. - /// Creates an instance of the ShowCommandParameterType class based on a Type object. + /// Initializes a new instance of the class + /// with the specified . /// /// /// The object to wrap. @@ -43,8 +43,8 @@ public ShowCommandParameterType(Type other) } /// - /// Initializes a new instance of the class. - /// Creates an instance of the ShowCommandParameterType class based on a Type object. + /// Initializes a new instance of the class + /// with the specified . /// /// /// The object to wrap. diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/BasicHtmlWebResponseObject.Common.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/BasicHtmlWebResponseObject.Common.cs index 800c22e4714..be9b6e409bc 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/BasicHtmlWebResponseObject.Common.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/BasicHtmlWebResponseObject.Common.cs @@ -31,7 +31,6 @@ public class BasicHtmlWebResponseObject : WebResponseObject /// /// Initializes a new instance of the class. - /// Constructor for BasicHtmlWebResponseObject. /// /// public BasicHtmlWebResponseObject(HttpResponseMessage response) @@ -39,8 +38,8 @@ public BasicHtmlWebResponseObject(HttpResponseMessage response) { } /// - /// Initializes a new instance of the class. - /// Constructor for HtmlWebResponseObject with memory stream. + /// Initializes a new instance of the class + /// with the specified . /// /// /// diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs index 0b1617f13f5..dc00bb8b20c 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs @@ -864,7 +864,6 @@ public sealed class HttpResponseException : HttpRequestException { /// /// Initializes a new instance of the class. - /// Constructor for HttpResponseException. /// /// Message for the exception. /// Response from the HTTP server. diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebResponseObject.Common.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebResponseObject.Common.cs index ff88e858510..4c6c887cd47 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebResponseObject.Common.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebResponseObject.Common.cs @@ -145,7 +145,6 @@ public Dictionary> Headers /// /// Initializes a new instance of the class. - /// Constructor for WebResponseObject. /// /// public WebResponseObject(HttpResponseMessage response) @@ -153,8 +152,8 @@ public WebResponseObject(HttpResponseMessage response) { } /// - /// Initializes a new instance of the class. - /// Constructor for WebResponseObject with contentStream. + /// Initializes a new instance of the class + /// with the specified . /// /// /// diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/CoreCLR/InvokeWebRequestCommand.CoreClr.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/CoreCLR/InvokeWebRequestCommand.CoreClr.cs index 3c0daa7898c..dafcf3b4295 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/CoreCLR/InvokeWebRequestCommand.CoreClr.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/CoreCLR/InvokeWebRequestCommand.CoreClr.cs @@ -19,7 +19,6 @@ public class InvokeWebRequestCommand : WebRequestPSCmdlet /// /// Initializes a new instance of the class. - /// Default constructor for InvokeWebRequestCommand. /// public InvokeWebRequestCommand() : base() { diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/FormObject.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/FormObject.cs index eea44d548e5..b8f7d252711 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/FormObject.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/FormObject.cs @@ -32,7 +32,6 @@ public class FormObject /// /// Initializes a new instance of the class. - /// Constructor for FormObject. /// /// /// diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebRequestSession.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebRequestSession.cs index 363e5c34260..ae08babe17f 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebRequestSession.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebRequestSession.cs @@ -76,7 +76,6 @@ public class WebRequestSession /// /// Initializes a new instance of the class. - /// Construct a new instance of a WebRequestSession object. /// public WebRequestSession() { diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Write.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Write.cs index ca57c09e3de..c812d47ec7f 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Write.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Write.cs @@ -394,7 +394,6 @@ public sealed class WriteErrorCommand : WriteOrThrowErrorCommand { /// /// Initializes a new instance of the class. - /// Constructor. /// public WriteErrorCommand() { @@ -435,7 +434,6 @@ public class WriteErrorException : SystemException #region ctor /// /// Initializes a new instance of the class. - /// Constructor for class WriteErrorException. /// /// Constructed object. public WriteErrorException() @@ -445,7 +443,6 @@ public WriteErrorException() /// /// Initializes a new instance of the class. - /// Constructor for class WriteErrorException. /// /// /// Constructed object. @@ -456,7 +453,6 @@ public WriteErrorException(string message) /// /// Initializes a new instance of the class. - /// Constructor for class WriteErrorException. /// /// /// @@ -470,8 +466,7 @@ public WriteErrorException(string message, #region Serialization /// - /// Initializes a new instance of the class. - /// Serialization constructor for class WriteErrorException. + /// Initializes a new instance of the class for serialization. /// /// Serialization information. /// Streaming context. diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/trace/MshHostTraceListener.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/trace/MshHostTraceListener.cs index e2dcc2a0e43..19cfd7c7e20 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/trace/MshHostTraceListener.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/trace/MshHostTraceListener.cs @@ -24,7 +24,6 @@ internal class PSHostTraceListener /// /// Initializes a new instance of the class. - /// Default constructor used if no. /// internal PSHostTraceListener(PSCmdlet cmdlet) : base(string.Empty)