Change SwitchParameters from fields to properties (#13291)

This commit is contained in:
xtqqczze authored and GitHub committed 2020-08-06 15:29:17 -07:00
1 parent d4e047ce45
commit 87b2581dd2
2 files changed
+2 -2

No files matched your search

@@ -179,7 +179,7 @@ namespace Microsoft.PowerShell.Commands
/// With this switch, standard ping and -Traceroute returns only true / false, and -MtuSize returns an integer.
/// </summary>
[Parameter]
public SwitchParameter Quiet;
public SwitchParameter Quiet { get; set; }
/// <summary>
/// Gets or sets the timeout value for an individual ping in seconds.
@@ -44,7 +44,7 @@ namespace Microsoft.PowerShell.Commands
/// Gets or sets whether to treat a numeric input as ticks, or unix time.
/// </summary>
[Parameter]
public SwitchParameter FromUnixTime;
public SwitchParameter FromUnixTime { get; set; }
private DateTime _date;
private bool _dateSpecified;