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 @@ -690,7 +690,7 @@ private static void FormatMethodData(PSObject member, string name, out string me
{
parameterType = GetPropertyString(parameterTypeData, "name");

// If there is no type for the paramter, we expect it is System.Object
// If there is no type for the parameter, we expect it is System.Object
if (string.IsNullOrEmpty(parameterType))
{
parameterType = "object";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ internal void BuildParagraph()
}

/// <summary>
/// Highlights all ocurrences of <paramref name="search"/>.
/// Highlights all occurrences of <paramref name="search"/>.
/// This is called after all calls to AddText have been made.
/// </summary>
/// <param name="search">Search string.</param>
Expand Down Expand Up @@ -249,7 +249,7 @@ private static void AddInline(Paragraph currentParagraph, bool currentBold, bool
/// </summary>
/// <param name="currentSpanIndex">Current index within <paramref name="allSpans"/>.</param>
/// <param name="currentSpan">Current span within <paramref name="allSpans"/>.</param>
/// <param name="caracterPosition">Caracter position. This comes from a position within this.textBuilder.</param>
/// <param name="caracterPosition">Character position. This comes from a position within this.textBuilder.</param>
/// <param name="allSpans">The collection of spans. This is either this.boldSpans or this.highlightedSpans.</param>
private static void MoveSpanToPosition(ref int currentSpanIndex, ref TextSpan? currentSpan, int caracterPosition, List<TextSpan> allSpans)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ internal Run MoveAndHighlightNextNextMatch(bool forward, TextPointer caretPositi
}

// If the caret is in the end of a highlight we move to the adjacent run
// It has to be in the end because if there is a match at the begining of the file
// It has to be in the end because if there is a match at the beginning of the file
// and the caret has not been touched (so it is in the beginning of the file too)
// we want to highlight this first match.
// Considering the caller allways set the caret to the end of the highlight
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
namespace Microsoft.Management.UI.Internal
{
/// <summary>
/// The FilterEvaluator class is responsible for allowing the registeration of
/// The FilterEvaluator class is responsible for allowing the registration of
/// the FilterExpressionProviders and producing a FilterExpression composed of
/// the FilterExpression returned from the providers.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public interface IEvaluate
{
/// <summary>
/// Gets a values indicating whether the supplied item has meet the
/// criteria rule specificed by the rule.
/// criteria rule specified by the rule.
/// </summary>
/// <param name="item">
/// The item to evaluate.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public FilterRule Rule
}

/// <summary>
/// Gets a string that indentifies which group this
/// Gets a string that identifies which group this
/// item belongs to.
/// </summary>
public string GroupId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ protected override void OnItemsSourceChanged(System.Collections.IEnumerable oldV

this.itemsSourceIsEmpty = this.ItemsSource != null && this.ItemsSource.GetEnumerator().MoveNext() == false;

// A view can be created if there is data to auto-generate columns, or columns are added programatically \\
// A view can be created if there is data to auto-generate columns, or columns are added programmatically \\
bool canCreateView = (this.ItemsSource != null) &&
(this.itemsSourceIsEmpty == false || this.AutoGenerateColumns == false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ public void OpenHelpWindow()
}

/// <summary>
/// Determins whether current command name and a specifed ParameterSetName have same name.
/// Determines whether current command name and a specified ParameterSetName have same name.
/// </summary>
/// <param name="name">The name of ShareParameterSet.</param>
/// <returns>Return true is ShareParameterSet. Else return false.</returns>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ internal void RefreshFilteredCommands(string filter)
}

/// <summary>
/// Callled in response to a GUI event that requires the command to be run.
/// Called in response to a GUI event that requires the command to be run.
/// </summary>
internal void OnRunSelectedCommand()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class ParameterSetViewModel : INotifyPropertyChanged
/// Initializes a new instance of the ParameterSetViewModel class.
/// </summary>
/// <param name="name">The name of the parameterSet.</param>
/// <param name="parameters">The array parametes of the parameterSet.</param>
/// <param name="parameters">The array parameters of the parameterSet.</param>
[SuppressMessage("Microsoft.Design", "CA1002:DoNotExposeGenericLists", Justification = "this type is internal, made public only for WPF Binding")]
public ParameterSetViewModel(
string name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public enum PerformanceCounterType
/// A difference counter that shows the change in the measured attribute
/// between the two most recent sample intervals. It is the same as the
/// CounterDelta32 counter type except that is uses larger fields to
/// accomodate larger values.</summary>
/// accommodate larger values.</summary>
CounterDelta64 = 4195584
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class TestJsonCommand : PSCmdlet
public string Schema { get; set; }

/// <summary>
/// Gets or sets path to the file containg schema to validate the JSON string against.
/// Gets or sets path to the file containing schema to validate the JSON string against.
/// This is optional parameter.
/// </summary>
[Parameter(Position = 1, ParameterSetName = SchemaFileParameterSet)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static class UtilityResources
public static string FileReadError { get { return UtilityCommonStrings.FileReadError; } }

/// <summary>
/// The resource string used to indicate 'PATH:' in the formating header.
/// The resource string used to indicate 'PATH:' in the formatting header.
/// </summary>
public static string FormatHexPathPrefix { get { return UtilityCommonStrings.FormatHexPathPrefix; } }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public abstract partial class WebRequestPSCmdlet : PSCmdlet
public virtual SwitchParameter AllowUnencryptedAuthentication { get; set; }

/// <summary>
/// Gets or sets the Authentication property used to determin the Authentication method for the web session.
/// Gets or sets the Authentication property used to determine the Authentication method for the web session.
/// Authentication does not work with UseDefaultCredentials.
/// Authentication over unencrypted sessions requires AllowUnencryptedAuthentication.
/// Basic: Requires Credential.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2715,7 +2715,7 @@ private bool HandleErrors(Exception e, string line, bool inBlockMode, ref String
}
else
{
// an exception ocurred when the command was executed. Tell the user about it.
// an exception occurred when the command was executed. Tell the user about it.
_parent.ReportException(e, _exec);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ public override
}

// if the new size will extend past the edge of screen buffer, then move the window position to try to
// accomodate that.
// accommodate that.

ConsoleControl.SMALL_RECT r = bufferInfo.WindowRect;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ private static NotificationType GetNotificationType()
private enum NotificationType
{
/// <summary>
/// Turn off the udpate notification.
/// Turn off the update notification.
/// </summary>
Off = 0,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private unsafe void EtwRegister()
}

//
// implement Dispose Pattern to early deregister from ETW insted of waiting for
// implement Dispose Pattern to early deregister from ETW instead of waiting for
// the finalizer to call deregistration.
// Once the user is done with the provider it needs to call Close() or Dispose()
// If neither are called the finalizer will unregister the provider anyway
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7396,7 +7396,7 @@ public int Compare(PSObject x, PSObject y)
}

/// <summary>
/// This class is very similar to the restricted langauge checker, but it is meant to allow more things, yet still
/// This class is very similar to the restricted language checker, but it is meant to allow more things, yet still
/// be considered "safe", at least in the sense that tab completion can rely on it to not do bad things. The primary
/// use is for intellisense where you don't want to run arbitrary code, but you do want to know the values
/// of various expressions so you can get the members.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static SubsystemManager()
/// directly interacting with the implementation proxy object of `IPrediction`.
/// </remarks>
/// <typeparam name="TConcreteSubsystem">The concrete subsystem base type.</typeparam>
/// <returns>The most recently registered implmentation object of the concrete subsystem.</returns>
/// <returns>The most recently registered implementation object of the concrete subsystem.</returns>
internal static TConcreteSubsystem? GetSubsystem<TConcreteSubsystem>()
where TConcreteSubsystem : class, ISubsystem
{
Expand All @@ -87,7 +87,7 @@ static SubsystemManager()
/// Return an empty collection when the given subsystem is not registered.
/// </summary>
/// <typeparam name="TConcreteSubsystem">The concrete subsystem base type.</typeparam>
/// <returns>A readonly collection of all implmentation objects registered for the concrete subsystem.</returns>
/// <returns>A readonly collection of all implementation objects registered for the concrete subsystem.</returns>
internal static ReadOnlyCollection<TConcreteSubsystem> GetSubsystems<TConcreteSubsystem>()
where TConcreteSubsystem : class, ISubsystem
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2191,7 +2191,7 @@ internal int StartSSHProcess(
startInfo.ArgumentList.Add(string.Format(CultureInfo.InvariantCulture, @"-i ""{0}""", this.KeyFilePath));
}

// pass "-l login_name" commmand line argument to ssh if UserName is set
// pass "-l login_name" command line argument to ssh if UserName is set
// if UserName is not set, then ssh will use User from ssh_config if defined else the environment user by default
if (!string.IsNullOrEmpty(this.UserName))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace System.Management.Automation
public sealed class RunspacePoolStateInfo
{
/// <summary>
/// State of the runspace pool when this event occured.
/// State of the runspace pool when this event occurred.
/// </summary>
public RunspacePoolState State { get; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ private void LoadHelpFile(string helpFile, string helpFileIdentifier, string com
}

if (e != null)
s_tracer.WriteLine("Error occured in DscResourceHelpProvider {0}", e.Message);
s_tracer.WriteLine("Error occurred in DscResourceHelpProvider {0}", e.Message);

if (reportErrors && (e != null))
{
Expand Down
2 changes: 1 addition & 1 deletion src/System.Management.Automation/help/MamlNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ internal PSObject PSObject
/// </atomicXml>
/// In this case, an PSObject that wraps string "atomic xml text" will be returned with following properties
/// attribute => name
/// 3. Composite xml, which is an xmlNode with structured child nodes, but not a special case for Maml formating.
/// 3. Composite xml, which is an xmlNode with structured child nodes, but not a special case for Maml formatting.
/// <compositeXml attribute="attribute">
/// <singleChildNode>
/// single child node text
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ internal void SeekItemsBackward(int backCount)
(e is UnauthorizedAccessException) ||
(e is ArgumentNullException))
{
// Exception contains specific message about the error occured and so no need for errordetails.
// Exception contains specific message about the error occurred and so no need for errordetails.
_provider.WriteError(new ErrorRecord(e, "GetContentReaderIOError", ErrorCategory.ReadError, _path));
}
else
Expand Down
Loading