From 45a5f8b7d1da6474e0b5ffe23718c5b58232aa43 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 28 Aug 2016 06:01:56 +0000 Subject: [PATCH] spelling: comments in src/System.Management.Automation/utils --- src/System.Management.Automation/utils/ClrFacade.cs | 6 +++--- src/System.Management.Automation/utils/CryptoUtils.cs | 6 +++--- .../utils/GraphicalHostReflectionWrapper.cs | 2 +- .../utils/IObjectWriter.cs | 2 +- .../utils/MshTraceSource.cs | 2 +- src/System.Management.Automation/utils/ObjectStream.cs | 10 +++++----- src/System.Management.Automation/utils/ObjectWriter.cs | 2 +- src/System.Management.Automation/utils/PathUtils.cs | 6 +++--- .../utils/PowerShellETWTracer.cs | 4 ++-- src/System.Management.Automation/utils/PsUtils.cs | 10 +++++----- .../utils/SessionStateExceptions.cs | 2 +- .../utils/StructuredTraceSource.cs | 4 ++-- src/System.Management.Automation/utils/Verbs.cs | 4 ++-- .../utils/WindowsErrorReporting.cs | 8 ++++---- src/System.Management.Automation/utils/assert.cs | 6 +++--- .../utils/perfCounters/CounterSetInstanceBase.cs | 4 ++-- .../utils/perfCounters/CounterSetRegistrarBase.cs | 2 +- .../utils/perfCounters/PSPerfCountersMgr.cs | 4 ++-- .../utils/tracing/EtwActivity.cs | 6 +++--- .../utils/tracing/EtwActivityReverterMethodInvoker.cs | 2 +- 20 files changed, 46 insertions(+), 46 deletions(-) diff --git a/src/System.Management.Automation/utils/ClrFacade.cs b/src/System.Management.Automation/utils/ClrFacade.cs index 97b9e69e4..f249fae5d 100644 --- a/src/System.Management.Automation/utils/ClrFacade.cs +++ b/src/System.Management.Automation/utils/ClrFacade.cs @@ -38,7 +38,7 @@ namespace System.Management.Automation { /// /// We need it to avoid calling lookups inside dynamic assemblies with PS Types, so we exclude it from GetAssemblies(). - /// We use this convention for names to achive it. + /// We use this convention for names to archive it. /// internal static readonly char FIRST_CHAR_PSASSEMBLY_MARK = (char)0x29f9; @@ -326,7 +326,7 @@ namespace System.Management.Automation } /// - /// Load assemlby from byte stream. + /// Load assembly from byte stream. /// internal static Assembly LoadFrom(Stream assembly) { @@ -602,7 +602,7 @@ namespace System.Management.Automation /// /// In CORECLR, there are two peculiarities with its implementation that affect our own: /// 1. Structures cannot be instantiated using GetConstructor, so they must be filtered out. - /// 2. Classes must have a default constructor implemented for GetContructor to work. + /// 2. Classes must have a default constructor implemented for GetConstructor to work. /// /// See RemoteHostEncoder.IsEncodingAllowedForClassOrStruct for a list of the required types. /// diff --git a/src/System.Management.Automation/utils/CryptoUtils.cs b/src/System.Management.Automation/utils/CryptoUtils.cs index 302ff07b4..a827a89a1 100644 --- a/src/System.Management.Automation/utils/CryptoUtils.cs +++ b/src/System.Management.Automation/utils/CryptoUtils.cs @@ -371,7 +371,7 @@ namespace System.Management.Automation.Internal /// Constructor with inner exception /// /// error message - /// innter exception + /// inner exception /// This constructor is currently not called /// explicitly from crypto utils public PSCryptoException(string message, Exception innerException) : @@ -512,7 +512,7 @@ namespace System.Management.Automation.Internal } /// - /// Generates an AEX-256 sessin key if one is not already generated + /// Generates an AEX-256 session key if one is not already generated /// internal void GenerateSessionKey() { @@ -860,7 +860,7 @@ namespace System.Management.Automation.Internal #region IDisposable /// - /// Dipose resources + /// Dispose resources /// public void Dispose() { diff --git a/src/System.Management.Automation/utils/GraphicalHostReflectionWrapper.cs b/src/System.Management.Automation/utils/GraphicalHostReflectionWrapper.cs index 406d1f7d7..94ad1bf00 100644 --- a/src/System.Management.Automation/utils/GraphicalHostReflectionWrapper.cs +++ b/src/System.Management.Automation/utils/GraphicalHostReflectionWrapper.cs @@ -21,7 +21,7 @@ namespace System.Management.Automation.Internal /// Microsoft.PowerShell.GraphicalHost.dll contains: /// 1) out-gridview window implementation (the actual cmdlet is in Microsoft.PowerShell.Commands.Utility.dll) /// 2) show-command window implementation (the actual cmdlet is in Microsoft.PowerShell.Commands.Utility.dll) - /// 3) the help window used in the System.Management.Automation.dll's get-help cmdslet when -ShowWindow is specified + /// 3) the help window used in the System.Management.Automation.dll's get-help cmdlet when -ShowWindow is specified /// internal class GraphicalHostReflectionWrapper { diff --git a/src/System.Management.Automation/utils/IObjectWriter.cs b/src/System.Management.Automation/utils/IObjectWriter.cs index 33f264696..ef7ceb237 100644 --- a/src/System.Management.Automation/utils/IObjectWriter.cs +++ b/src/System.Management.Automation/utils/IObjectWriter.cs @@ -107,7 +107,7 @@ namespace System.Management.Automation.Runspaces /// If enumerateCollection is true, and /// is an enumeration according to LanguagePrimitives.GetEnumerable, /// the objects in the enumeration will be unrolled and - /// written seperately. Otherwise, + /// written separately. Otherwise, /// will be written as a single object. /// /// The number of objects written diff --git a/src/System.Management.Automation/utils/MshTraceSource.cs b/src/System.Management.Automation/utils/MshTraceSource.cs index f9e2e4b86..63fc1ee26 100644 --- a/src/System.Management.Automation/utils/MshTraceSource.cs +++ b/src/System.Management.Automation/utils/MshTraceSource.cs @@ -24,7 +24,7 @@ namespace System.Management.Automation /// /// The PSTraceSource class is derived from Switch to provide granular /// control over the tracing in a program. An instance of PSTraceSource - /// is created for each category of tracing such that seperate flags + /// is created for each category of tracing such that separate flags /// (filters) can be set. Each flag enables one or more method for tracing. /// /// For instance, the Exception flag will enable tracing on these methods: diff --git a/src/System.Management.Automation/utils/ObjectStream.cs b/src/System.Management.Automation/utils/ObjectStream.cs index 22e41b092..480fd5a0f 100644 --- a/src/System.Management.Automation/utils/ObjectStream.cs +++ b/src/System.Management.Automation/utils/ObjectStream.cs @@ -280,7 +280,7 @@ namespace System.Management.Automation.Internal /// If enumerateCollection is true, and /// is an enumeration according to LanguagePrimitives.GetEnumerable, /// the objects in the enumeration will be unrolled and - /// written seperately. Otherwise, + /// written separately. Otherwise, /// will be written as a single object. /// /// The number of objects written @@ -520,7 +520,7 @@ namespace System.Management.Automation.Internal /// Default constructor /// /// - /// Constructs a stream with a miximum size of Int32.Max + /// Constructs a stream with a maximum size of Int32.Max /// internal ObjectStream() : this(Int32.MaxValue) @@ -1293,7 +1293,7 @@ namespace System.Management.Automation.Internal /// If enumerateCollection is true, and /// is an enumeration according to LanguagePrimitives.GetEnumerable, /// the objects in the enumeration will be unrolled and - /// written seperately. Otherwise, + /// written separately. Otherwise, /// will be written as a single object. /// /// The number of objects written @@ -1342,7 +1342,7 @@ namespace System.Management.Automation.Internal foreach (object o in enumerable) { // 879023-2003/10/28-JonN - // Outputting stops when recieving a AutomationNull.Value + // Outputting stops when receiving a AutomationNull.Value // 2003/10/28-JonN There is a window where another // thread could modify the array to contain // AutomationNull.Value, but I'm not going to deal with it. @@ -1833,7 +1833,7 @@ namespace System.Management.Automation.Internal { foreach (object o in enumerable) { - // Outputting stops when recieving a AutomationNull.Value + // Outputting stops when receiving a AutomationNull.Value // There is a window where another thread could modify the // array to contain AutomationNull.Value, // but I'm not going to deal with it. diff --git a/src/System.Management.Automation/utils/ObjectWriter.cs b/src/System.Management.Automation/utils/ObjectWriter.cs index 2301ba582..f0912633c 100644 --- a/src/System.Management.Automation/utils/ObjectWriter.cs +++ b/src/System.Management.Automation/utils/ObjectWriter.cs @@ -156,7 +156,7 @@ namespace System.Management.Automation.Internal /// If enumerateCollection is true, and /// is an enumeration according to LanguagePrimitives.GetEnumerable, /// the objects in the enumeration will be unrolled and - /// written seperately. Otherwise, + /// written separately. Otherwise, /// will be written as a single object. /// /// The number of objects written diff --git a/src/System.Management.Automation/utils/PathUtils.cs b/src/System.Management.Automation/utils/PathUtils.cs index e6cceecbf..6f6f7f0f7 100644 --- a/src/System.Management.Automation/utils/PathUtils.cs +++ b/src/System.Management.Automation/utils/PathUtils.cs @@ -23,7 +23,7 @@ namespace System.Management.Automation /// /// cmdlet that is opening the file (used mainly for error reporting) /// path to the file (as specified on the command line - this method will resolve the path) - /// encoding (this method will convert the command line strin to an Encoding instance) + /// encoding (this method will convert the command line string to an Encoding instance) /// if true, then we will use default .NET encoding instead of the encoding specified in parameter /// /// @@ -57,7 +57,7 @@ namespace System.Management.Automation /// /// cmdlet that is opening the file (used mainly for error reporting) /// path to the file (as specified on the command line - this method will resolve the path) - /// encoding (this method will convert the command line strin to an Encoding instance) + /// encoding (this method will convert the command line string to an Encoding instance) /// if true, then we will use default .NET encoding instead of the encoding specified in parameter /// /// @@ -453,7 +453,7 @@ namespace System.Management.Automation internal const string OEM = "oem"; /// - /// retrieve the encoding paramater from the command line + /// retrieve the encoding parameter from the command line /// it throws if the encoding does not match the known ones /// /// a System.Text.Encoding object (null if no encoding specified) diff --git a/src/System.Management.Automation/utils/PowerShellETWTracer.cs b/src/System.Management.Automation/utils/PowerShellETWTracer.cs index feb34a9aa..b853d751d 100644 --- a/src/System.Management.Automation/utils/PowerShellETWTracer.cs +++ b/src/System.Management.Automation/utils/PowerShellETWTracer.cs @@ -350,7 +350,7 @@ namespace System.Management.Automation.Tracing Exception = 0xB002, /// - /// PoweShellObject + /// PowerShellObject /// PowerShellObject = 0xB003, @@ -940,7 +940,7 @@ namespace System.Management.Automation.Tracing private bool disposed; /// - /// Consturctor + /// Constructor /// internal PowerShellTraceSource(PowerShellTraceTask task, PowerShellTraceKeywords keywords) { diff --git a/src/System.Management.Automation/utils/PsUtils.cs b/src/System.Management.Automation/utils/PsUtils.cs index b8964bf57..6ace95e15 100644 --- a/src/System.Management.Automation/utils/PsUtils.cs +++ b/src/System.Management.Automation/utils/PsUtils.cs @@ -145,10 +145,10 @@ namespace System.Management.Automation } } -#if !CORECLR // .NET Frmework Version is not applicable to CoreCLR +#if !CORECLR // .NET Framework Version is not applicable to CoreCLR /// - /// Detects the installation of Frmework Versions 1.1, 2.0, 3.0 and 3.5 and 4.0 through - /// the official registry instalation keys. + /// Detects the installation of Framework Versions 1.1, 2.0, 3.0 and 3.5 and 4.0 through + /// the official registry installation keys. /// internal static class FrameworkRegistryInstallation { @@ -586,7 +586,7 @@ namespace System.Management.Automation } #else // Important: - // this functiona has a clone in Workflow.ServiceCore in admin\monad\src\m3p\product\ServiceCore\WorkflowCore\WorkflowRuntimeCompilation.cs + // this function has a clone in Workflow.ServiceCore in admin\monad\src\m3p\product\ServiceCore\WorkflowCore\WorkflowRuntimeCompilation.cs // if you are making any changes specific to this function then update the clone as well. var sysInfo = new NativeMethods.SYSTEM_INFO(); @@ -682,7 +682,7 @@ namespace System.Management.Automation /// /// This method is used when handling a script block that contains $using for Invoke-Command. /// - /// When run Invoke-Command targetting a machine that runs PSv3 or above, we pass a dictionary + /// When run Invoke-Command targeting a machine that runs PSv3 or above, we pass a dictionary /// to the remote end that contains the key of each UsingExpressionAst and its value. This method /// is used to generate the key. /// diff --git a/src/System.Management.Automation/utils/SessionStateExceptions.cs b/src/System.Management.Automation/utils/SessionStateExceptions.cs index e21b18f0f..1f3d66cd2 100644 --- a/src/System.Management.Automation/utils/SessionStateExceptions.cs +++ b/src/System.Management.Automation/utils/SessionStateExceptions.cs @@ -683,7 +683,7 @@ namespace System.Management.Automation /// SessionStateUnauthorizedAccessException occurs when /// a change to a session state object cannot be completed /// because the object is read-only or constant, or because - /// an object which is declard constant cannot be removed + /// an object which is declared constant cannot be removed /// or made non-constant. /// [Serializable] diff --git a/src/System.Management.Automation/utils/StructuredTraceSource.cs b/src/System.Management.Automation/utils/StructuredTraceSource.cs index 59d6786d2..0ce79d7b8 100644 --- a/src/System.Management.Automation/utils/StructuredTraceSource.cs +++ b/src/System.Management.Automation/utils/StructuredTraceSource.cs @@ -36,7 +36,7 @@ namespace System.Management.Automation /// Constructors will be traced /// /// Constructor = 0x00000001, @@ -221,7 +221,7 @@ namespace System.Management.Automation ///