From 87b2581dd2907faf284690c2eab5c73b7e0b7fcc Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Thu, 6 Aug 2020 23:29:17 +0100 Subject: [PATCH] Change SwitchParameters from fields to properties (#13291) --- .../commands/management/TestConnectionCommand.cs | 2 +- .../commands/utility/GetDateCommand.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/TestConnectionCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/TestConnectionCommand.cs index c5d4f0395..94488506e 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/TestConnectionCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/TestConnectionCommand.cs @@ -179,7 +179,7 @@ namespace Microsoft.PowerShell.Commands /// With this switch, standard ping and -Traceroute returns only true / false, and -MtuSize returns an integer. /// [Parameter] - public SwitchParameter Quiet; + public SwitchParameter Quiet { get; set; } /// /// Gets or sets the timeout value for an individual ping in seconds. diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetDateCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetDateCommand.cs index 4516568cc..86aa1759c 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetDateCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetDateCommand.cs @@ -44,7 +44,7 @@ namespace Microsoft.PowerShell.Commands /// Gets or sets whether to treat a numeric input as ticks, or unix time. /// [Parameter] - public SwitchParameter FromUnixTime; + public SwitchParameter FromUnixTime { get; set; } private DateTime _date; private bool _dateSpecified;