X Tutup
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ private static PSPropertyInfo GetProperty(PSObject psObj, string propertyName)
/// </summary>
/// <param name="psObj">PSObject that contains another PSObject as a property.</param>
/// <param name="psObjectName">Property name that contains the PSObject.</param>
/// <param name="propertyName">Property name in thye inner PSObject.</param>
/// <param name="propertyName">Property name in the inner PSObject.</param>
/// <returns>The string from the inner psObject property or null if it could not be retrieved.</returns>
private static string GetInnerPSObjectPropertyString(PSObject psObj, string psObjectName, string propertyName)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ private void SetMatchesLabel()
}

/// <summary>
/// Called internally to notify when a proiperty changed.
/// Called internally to notify when a property changed.
/// </summary>
/// <param name="propertyName">Property name.</param>
private void OnNotifyPropertyChanged(string propertyName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ internal Paragraph Paragraph
/// <summary>
/// Called after all the AddText calls have been made to build the paragraph
/// based on the current text.
/// This method goes over 3 collections simultaneouslly:
/// This method goes over 3 collections simultaneously:
/// 1) characters in this.textBuilder
/// 2) spans in this.boldSpans
/// 3) spans in this.highlightedSpans
/// And adds the minimal number of Inlines to the paragraph so that all
/// characters that should be bold and/or highlighed are.
/// characters that should be bold and/or highlighted are.
/// </summary>
internal void BuildParagraph()
{
Expand Down Expand Up @@ -234,11 +234,11 @@ private static void AddInline(Paragraph currentParagraph, bool currentBold, bool
}

/// <summary>
/// This is an auxiliar method in BuildParagraph to move the current bold or highlighed spans
/// This is an auxiliar method in BuildParagraph to move the current bold or highlighted spans
/// according to the <paramref name="caracterPosition"/>
/// The current bold and higlighed span should be ending ahead of the current position.
/// The current bold and highlighted span should be ending ahead of the current position.
/// Moves <paramref name="currentSpanIndex"/> and <paramref name="currentSpan"/> to the
/// propper span in <paramref name="allSpans"/> according to the <paramref name="caracterPosition"/>
/// proper span in <paramref name="allSpans"/> according to the <paramref name="caracterPosition"/>
/// This is an auxiliar method in BuildParagraph.
/// </summary>
/// <param name="currentSpanIndex">Current index within <paramref name="allSpans"/>.</param>
Expand Down Expand Up @@ -290,7 +290,7 @@ private void AddHighlight(int start, int length)
}

/// <summary>
/// Called internally to notify when a proiperty changed.
/// Called internally to notify when a property changed.
/// </summary>
/// <param name="propertyName">Property name.</param>
private void OnNotifyPropertyChanged(string propertyName)
Expand All @@ -303,7 +303,7 @@ private void OnNotifyPropertyChanged(string propertyName)
}

/// <summary>
/// A text span used to mark bold and highlighed segments.
/// A text span used to mark bold and highlighted segments.
/// </summary>
internal struct TextSpan
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@ private static Paragraph GetParagraph(Run run)
}

/// <summary>
/// Returns true if the run is the fiorst run of the paragraph.
/// Returns true if the run is the first run of the paragraph.
/// </summary>
/// <param name="run">Run to check.</param>
/// <returns>True if the run is the fiorst run of the paragraph.</returns>
/// <returns>True if the run is the first run of the paragraph.</returns>
private static bool IsFirstRun(Run run)
{
Paragraph paragraph = GetParagraph(run);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Microsoft.Management.UI.Internal
{
/// <summary>
/// Routed event args which provide the ability to attach an
/// arbitrary peice of data.
/// arbitrary piece of data.
/// </summary>
/// <typeparam name="T">There are no restrictions on type T.</typeparam>
[SuppressMessage("Microsoft.MSInternal", "CA903:InternalNamespaceShouldNotContainPublicTypes")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Microsoft.Management.UI.Internal
{

/// <summary>
/// A popup which child controls can signal to be dimissed.
/// A popup which child controls can signal to be dismissed.
/// </summary>
/// <remarks>
/// If a control wants to dismiss the popup then they should execute the DismissPopupCommand on a target in the popup window.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ private void AddControlToMainGrid(UIElement uiControl)
}

/// <summary>
/// Creates a Lable control and add it to MainGrid.
/// Creates a Label control and add it to MainGrid.
/// </summary>
/// <param name="parameterViewModel">DataContext object.</param>
/// <param name="rowNumber">Row number.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ public string GetScript()
}

/// <summary>
/// Showing help information for current actived cmdlet.
/// Showing help information for current active cmdlet.
/// </summary>
public void OpenHelpWindow()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,12 @@ internal static int Compare(ParameterViewModel source, ParameterViewModel target
#endregion

/// <summary>
/// Gets the delimited poarameter if it needs delimitation and is not delimited.
/// Gets the delimited parameter if it needs delimitation and is not delimited.
/// </summary>
/// <param name="parameterValue">Value needing delimitation.</param>
/// <param name="openDelimiter">Open delimitation.</param>
/// <param name="closeDelimiter">Close delimitation.</param>
/// <returns>The delimited poarameter if it needs delimitation and is not delimited.</returns>
/// <returns>The delimited parameter if it needs delimitation and is not delimited.</returns>
private static string GetDelimitedParameter(string parameterValue, string openDelimiter, string closeDelimiter)
{
string parameterValueTrimmed = parameterValue.Trim();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
namespace Microsoft.PowerShell.Commands.Internal
{
/// <summary>
/// Implements thw WPF window part of the ShowWindow option of get-help.
/// Implements the WPF window part of the ShowWindow option of get-help.
/// </summary>
internal static class HelpWindowHelper
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
namespace Microsoft.PowerShell.Commands.ShowCommandInternal
{
/// <summary>
/// Implements thw WPF window part of the show-command cmdlet.
/// Implements the WPF window part of the show-command cmdlet.
/// </summary>
internal class ShowCommandHelper : IDisposable
{
Expand Down Expand Up @@ -672,7 +672,7 @@ internal static AllModulesViewModel GetNewAllModulesViewModel(AllModulesViewMode
/// <summary>
/// Gets an error message to be displayed when failed to import a module.
/// </summary>
/// <param name="command">Command belongiong to the module to import.</param>
/// <param name="command">Command belonging to the module to import.</param>
/// <param name="module">Module to import.</param>
/// <param name="error">Error importing the module.</param>
/// <returns>An error message to be displayed when failed to import a module.</returns>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3055,7 +3055,7 @@ public class ComputerInfo
public ulong? OsFreeSpaceInPagingFiles { get; internal set; }

/// <summary>
/// Array of fiel paths to the operating system's paging files.
/// Array of file paths to the operating system's paging files.
/// </summary>
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public string[] OsPagingFiles { get; internal set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public sealed class FormatHex : PSCmdlet
private const int BUFFERSIZE = 16;

/// <summary>
/// For cases where a homogenous collection of bytes or other items are directly piped in, we collect all the
/// For cases where a homogeneous collection of bytes or other items are directly piped in, we collect all the
/// bytes in a List&lt;byte&gt; and then output the formatted result all at once in EndProcessing().
/// </summary>
private readonly List<byte> _inputBuffer = new();
Expand All @@ -37,7 +37,7 @@ public sealed class FormatHex : PSCmdlet
private bool _groupInput = true;

/// <summary>
/// Keep track of prior input types to determine if we're given a heterogenous collection.
/// Keep track of prior input types to determine if we're given a heterogeneous collection.
/// </summary>
private Type _lastInputType;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace System.Management.Automation.SecurityAccountsManager
internal class StringUtil
{
/// <summary>
/// Private constructor to precent auto-generation of a default constructor with greater accessability.
/// Private constructor to present auto-generation of a default constructor with greater accessibility.
/// </summary>
private StringUtil()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ public static void SetPowerShellAssemblyLoadContext([MarshalAs(UnmanagedType.LPW
}

/// <summary>
/// Provides helper functions to faciliate calling managed code from a native PowerShell host.
/// Provides helper functions to facilitate calling managed code from a native PowerShell host.
/// </summary>
public static unsafe class PowerShellUnsafeAssemblyLoad
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ internal static class CommonEnvVariableNames
private static string s_tempHome = null;

/// <summary>
/// Get the 'HOME' environment variable or create a temporary home diretory if the environment variable is not set.
/// Get the 'HOME' environment variable or create a temporary home directory if the environment variable is not set.
/// </summary>
private static string GetHomeOrCreateTempHome()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ internal PromptResponse PromptUser(PSHostUserInterface console)
private readonly PromptHandler _prompt = null;

/// <summary>
/// Conter for the # of lines written when prompting is on.
/// Counter for the # of lines written when prompting is on.
/// </summary>
private long _linesWritten = 0;

Expand All @@ -530,7 +530,7 @@ internal PromptResponse PromptUser(PSHostUserInterface console)
private bool _disableLineWrittenEvent = false;

/// <summary>
/// Refecence to the PSHostUserInterface interface we use.
/// Reference to the PSHostUserInterface interface we use.
/// </summary>
private readonly PSHostUserInterface _console = null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ private Expression GenerateFinallyBlock()
}

/// <summary>
/// Create a stub for the target of the optimized lopop.
/// Create a stub for the target of the optimized loop.
/// </summary>
/// <returns></returns>
private Expression MakeIDispatchInvokeTarget()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace System.Management.Automation.ComInterop
{
/// <summary>
/// This is similar to ComTypes.EXCEPINFO, but lets us do our own custom marshaling.
/// This is similar to ComTypes.EXCEPINFO, but lets us do our own custom marshalling.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
internal struct ExcepInfo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ internal static Type GetTypeForVarEnum(VarEnum vt)
}

/// <summary>
/// Gets the managed type that an object needs to be coverted to in order for it to be able
/// Gets the managed type that an object needs to be converted to in order for it to be able
/// to be represented as a Variant.
///
/// In general, there is a many-to-many mapping between Type and VarEnum. However, this method
Expand Down Expand Up @@ -429,7 +429,7 @@ private VarEnum GetComType(ref Type argumentType)
}

/// <summary>
/// Get the COM Variant type that argument should be marshaled as for a call to COM.
/// Get the COM Variant type that argument should be marshalled as for a call to COM.
/// </summary>
private VariantBuilder GetVariantBuilder(Type argumentType)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,7 @@ private LastWordFinder(string sentence)
}

/// <summary>
/// Locates the last "word" in a string of text. A word is a conguous sequence of characters that are not
/// Locates the last "word" in a string of text. A word is a congruous sequence of characters that are not
/// whitespace, or a contiguous set grouped by single or double quotes. Can be called by at most 1 thread at a time
/// per LastWordFinder instance.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ internal CommandLookupEventArgs(string commandName, CommandOrigin commandOrigin,
public bool StopSearch { get; set; }

/// <summary>
/// The CommandInfo obejct for the command that was found.
/// The CommandInfo object for the command that was found.
/// </summary>
public CommandInfo Command { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ private static Cmdlet ConstructInstance(Type type)
/// If the constructor for the cmdlet threw an exception.
/// </exception>
/// <exception cref="MemberAccessException">
/// The type referenced by <paramref name="cmdletInformation"/> refered to an
/// The type referenced by <paramref name="cmdletInformation"/> referred to an
/// abstract type or them member was invoked via a late-binding mechanism.
/// </exception>
/// <exception cref="TypeLoadException">
Expand Down
6 changes: 3 additions & 3 deletions src/System.Management.Automation/engine/CoreAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace System.Management.Automation
internal abstract class Adapter
{
/// <summary>
/// Tracer for this and derivate classes.
/// Tracer for this and derivative classes.
/// </summary>
[TraceSource("ETS", "Extended Type System")]
protected static PSTraceSource tracer = PSTraceSource.GetTracer("ETS", "Extended Type System");
Expand Down Expand Up @@ -1826,7 +1826,7 @@ internal static object[] GetMethodArgumentsBase(string methodName,
}

// We are going to put all the remaining arguments into an array
// and convert them to the propper type, if necessary to be the
// and convert them to the proper type, if necessary to be the
// one argument for this last parameter
int remainingArgumentCount = arguments.Length - parametersLength + 1;
if (remainingArgumentCount == 1 && arguments[arguments.Length - 1] == null)
Expand Down Expand Up @@ -1878,7 +1878,7 @@ internal static object[] GetMethodArgumentsBase(string methodName,
}

/// <summary>
/// Auxiliary method in MethodInvoke to set newArguments[index] with the propper value.
/// Auxiliary method in MethodInvoke to set newArguments[index] with the proper value.
/// </summary>
/// <param name="methodName">Used for the MethodException that might be thrown.</param>
/// <param name="arguments">The complete array of arguments.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4477,7 +4477,7 @@ static InitialSessionState()
internal static readonly SessionStateVariableEntry[] BuiltInVariables;

/// <summary>
/// Returns a new array of alias entries everytime it's called. This
/// Returns a new array of alias entries every time it's called. This
/// can't be static because the elements may be mutated in different session
/// state objects so each session state must have a copy of the entry.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4608,7 +4608,7 @@ private string FixFileName(string moduleName, string moduleBase, string fileName
/// A utility routine to fix up a file name so it's rooted and has an extension.
/// </summary>
/// <remarks>
/// When fixing up an assembly file, this method loads the resovled assembly if it's in the process of actually loading a module.
/// When fixing up an assembly file, this method loads the resolved assembly if it's in the process of actually loading a module.
/// Read the comments in the method for the detailed information.
/// </remarks>
/// <param name="moduleName">Name of the module that we are processing, used for caching purpose when we need to load an assembly.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,7 @@ internal static string GetModulePath()

#if !UNIX
/// <summary>
/// Returns a PSModulePath suiteable for Windows PowerShell by removing PowerShell's specific
/// Returns a PSModulePath suitable for Windows PowerShell by removing PowerShell's specific
/// paths from current PSModulePath.
/// </summary>
/// <returns>
Expand Down Expand Up @@ -1711,7 +1711,7 @@ internal enum ModuleMatchFailure
/// <summary>Module version was greater than the maximum version.</summary>
MaximumVersion,

/// <summary>The module specifcation passed in was null.</summary>
/// <summary>The module specification passed in was null.</summary>
NullModuleSpecification,
}

Expand Down
8 changes: 4 additions & 4 deletions src/System.Management.Automation/engine/MshCmdlet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public bool ToBool()
/// Construct a SwitchParameter instance with a particular value.
/// </summary>
/// <param name="isPresent">
/// If true, it indicates that the switch is present, flase otherwise.
/// If true, it indicates that the switch is present, false otherwise.
/// </param>
public SwitchParameter(bool isPresent)
{
Expand Down Expand Up @@ -362,7 +362,7 @@ public CommandInfo GetCommand(string commandName, CommandTypes type, object[] ar
public System.EventHandler<CommandLookupEventArgs> PostCommandLookupAction { get; set; }

/// <summary>
/// Gets or sets the action that is invoked everytime the runspace location (cwd) is changed.
/// Gets or sets the action that is invoked every time the runspace location (cwd) is changed.
/// </summary>
public System.EventHandler<LocationChangedEventArgs> LocationChangedAction { get; set; }

Expand Down Expand Up @@ -702,7 +702,7 @@ public Collection<PSObject> InvokeScript(string script, params object[] args)
}

/// <summary>
/// Executes a given scriptblock synchonously in the given session state.
/// Executes a given scriptblock synchronously in the given session state.
/// The scriptblock will be executed in the calling scope (dot-sourced) rather than in a new child scope.
/// </summary>
/// <param name="sessionState">The session state in which to execute the scriptblock.</param>
Expand Down Expand Up @@ -746,7 +746,7 @@ public Collection<PSObject> InvokeScript(
/// </summary>
/// <param name="useLocalScope">If true, executes the scriptblock in a new child scope, otherwise the scriptblock is dot-sourced into the calling scope.</param>
/// <param name="scriptBlock">The scriptblock to execute.</param>
/// <param name="input">Optionall input to the command.</param>
/// <param name="input">Optional input to the command.</param>
/// <param name="args">Arguments to pass to the scriptblock.</param>
/// <returns>
/// A collection of the PSObjects generated by executing the script. Never null, but may be empty.
Expand Down
Loading
X Tutup