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 @@ -5,8 +5,8 @@
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel; // Win32Exception
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics; // Eventlog class
using System.Diagnostics.CodeAnalysis;
using System.Management.Automation;
using System.Management.Automation.Internal;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel; // Win32Exception
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics; // Process class
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Management.Automation;
using System.Management.Automation.Internal;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ private static void BuildEdgeTypeInfo(
firstRightLeadingRow = r;
}

for (; ; )
while (true)
{
r++;
if (r > contentsRegion.Bottom)
Expand Down
16 changes: 10 additions & 6 deletions src/System.Management.Automation/engine/Attributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,6 @@ public string HelpMessageResourceId
/// This is primarily to be used in functions that are implementing the logic for dynamic keywords.
/// </summary>
public bool DontShow { get; set; }

}

/// <summary>
Expand Down Expand Up @@ -1093,7 +1092,8 @@ private void ValidateRange(object element, ValidateRangeKind rangeKind)
"ValidationRangeElementType",
innerException: null,
Metadata.ValidateRangeElementType,
element.GetType().Name, typeof(int).Name);
element.GetType().Name,
typeof(int).Name);
}

object resultValue;
Expand All @@ -1114,7 +1114,8 @@ private void ValidateRange(object element, ValidateRangeKind rangeKind)
"ValidationRangeElementType",
null,
Metadata.ValidateRangeElementType,
element.GetType().Name, commonType.Name);
element.GetType().Name,
commonType.Name);
}

switch (rangeKind)
Expand Down Expand Up @@ -1181,7 +1182,8 @@ private void ValidateRange(object element)
"ValidationRangeElementType",
null,
Metadata.ValidateRangeElementType,
element.GetType().Name, MinRange.GetType().Name);
element.GetType().Name,
MinRange.GetType().Name);
}
}

Expand All @@ -1192,7 +1194,8 @@ private void ValidateRange(object element)
"ValidateRangeTooSmall",
null,
Metadata.ValidateRangeSmallerThanMinRangeFailure,
element.ToString(), MinRange.ToString());
element.ToString(),
MinRange.ToString());
}

if (_maxComparable.CompareTo(element) < 0)
Expand All @@ -1201,7 +1204,8 @@ private void ValidateRange(object element)
"ValidateRangeTooBig",
null,
Metadata.ValidateRangeGreaterThanMaxRangeFailure,
element.ToString(), MaxRange.ToString());
element.ToString(),
MaxRange.ToString());
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.


using Dbg = System.Management.Automation.Diagnostics;
using DWORD = System.UInt32;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4624,6 +4624,7 @@ internal Token NextToken()
{
NormalizeCRLF(c1);
}

if (c1 == '\n' || c1 == '\r')
{
NewToken(TokenKind.LineContinuation);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ internal WSManConfigurationOption()
}

/// <summary>
/// LoadFromDefaults.
/// Override LoadFromDefaults method.
/// </summary>
/// <param name="keepAssigned"></param>
/// <param name="keepAssigned">Keep old values.</param>
protected internal override void LoadFromDefaults(bool keepAssigned)
{
if (!keepAssigned || !_outputBufferingMode.HasValue)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ internal virtual Hashtable ConstructQuotasAsHashtable()
/// If keepAssigned is true only those values are set
/// which are unassigned.
/// </summary>
/// <param name="keepAssigned"></param>
/// <param name="keepAssigned">Keep old values.</param>
protected internal virtual void LoadFromDefaults(bool keepAssigned)
{
throw new NotImplementedException();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.


using Dbg = System.Management.Automation.Diagnostics;

namespace System.Management.Automation.Remoting
Expand Down
Loading