mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Change SwitchParameters from fields to properties (#13291)
This commit is contained in:
1 parent
d4e047ce45
commit
87b2581dd2
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user