Redundancy: Remove 'partial' modifier from type with a single part by xtqqczze · Pull Request #12725 · PowerShell/PowerShell · GitHub
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 @@ -8,7 +8,7 @@

namespace Microsoft.PowerShell.Commands
{
internal static partial class WebResponseHelper
internal static class WebResponseHelper
{
internal static string GetCharacterSet(HttpResponseMessage response)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.WSMan.Management/ConfigProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace Microsoft.WSMan.Management
/// WsMan Provider.
/// </summary>
[CmdletProvider(WSManStringLiterals.ProviderName, ProviderCapabilities.Credentials)]
public sealed partial class WSManConfigProvider : NavigationCmdletProvider, ICmdletProviderSupportsHelp
public sealed class WSManConfigProvider : NavigationCmdletProvider, ICmdletProviderSupportsHelp
{
// Plugin Name Storage
private PSObject objPluginNames = null;
Expand Down
2 changes: 1 addition & 1 deletion src/System.Management.Automation/engine/cmdlet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace System.Management.Automation
/// task, extending the Cmdlet or PSCmdlet classes only as a thin management layer.
/// </remarks>
/// <seealso cref="System.Management.Automation.Internal.InternalCommand"/>
public abstract partial class Cmdlet : InternalCommand
public abstract class Cmdlet : InternalCommand
{
#region public_properties

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace System.Management.Automation.Interpreter
/// <summary>
/// Implements dynamic call site with many arguments. Wraps the arguments into <see cref="ArgumentArray"/>.
/// </summary>
internal sealed partial class DynamicSplatInstruction : Instruction
internal sealed class DynamicSplatInstruction : Instruction
{
private readonly CallSite<Func<CallSite, ArgumentArray, object>> _site;
private readonly int _argumentCount;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal interface IInstructionProvider
void AddInstructions(LightCompiler compiler);
}

internal abstract partial class Instruction
internal abstract class Instruction
{
public const int UnknownInstrIndex = int.MaxValue;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ internal static T[] AddLast<T>(this IList<T> list, T item)
}
}

internal static partial class DelegateHelpers
internal static class DelegateHelpers
{
#region Generated Maximum Delegate Arity

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace Microsoft.PowerShell.Commands
/// It contains tons of utility functions which are used all
/// across the remoting cmdlets.
/// </summary>
public abstract partial class PSRemotingCmdlet : PSCmdlet
public abstract class PSRemotingCmdlet : PSCmdlet
{
#region Overrides

Expand Down Expand Up @@ -296,7 +296,7 @@ internal struct SSHConnection
/// 2. Invoke-Expression
/// 3. Start-PSJob.
/// </summary>
public abstract partial class PSRemotingBaseCmdlet : PSRemotingCmdlet
public abstract class PSRemotingBaseCmdlet : PSRemotingCmdlet
{
#region Enums

Expand Down Expand Up @@ -1149,7 +1149,7 @@ protected override void BeginProcessing()
/// 1. Invoke-Expression
/// 2. Start-PSJob.
/// </summary>
public abstract partial class PSExecutionCmdlet : PSRemotingBaseCmdlet
public abstract class PSExecutionCmdlet : PSRemotingBaseCmdlet
{
#region Strings

Expand Down Expand Up @@ -2448,7 +2448,7 @@ private List<VariableExpressionAst> GetUsingVariables(ScriptBlock localScriptBlo
/// 3. Disconnect-PSSession
/// 4. Connect-PSSession.
/// </summary>
public abstract partial class PSRunspaceCmdlet : PSRemotingCmdlet
public abstract class PSRunspaceCmdlet : PSRemotingCmdlet
{
#region Parameters

Expand Down Expand Up @@ -3222,7 +3222,7 @@ private void WriteInvalidArgumentError(PSRemotingErrorId errorId, string resourc
/// Base class for both the helpers. This is an abstract class
/// and the helpers need to derive from this.
/// </summary>
internal abstract partial class ExecutionCmdletHelper : IThrottleOperation
internal abstract class ExecutionCmdletHelper : IThrottleOperation
{
/// <summary>
/// Pipeline associated with this operation.
Expand Down