mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Enable nullable: System.Management.Automation.IDynamicParameters (#14153)
This commit is contained in:
@@ -14,6 +14,7 @@ using PipelineResultTypes = System.Management.Automation.Runspaces.PipelineResul
|
||||
namespace System.Management.Automation
|
||||
{
|
||||
#region Auxiliary
|
||||
|
||||
/// <summary>
|
||||
/// An interface that a
|
||||
/// <see cref="Cmdlet"/> or <see cref="Provider.CmdletProvider"/>
|
||||
@@ -31,6 +32,7 @@ namespace System.Management.Automation
|
||||
/// <seealso cref="PSCmdlet"/>
|
||||
/// <seealso cref="RuntimeDefinedParameter"/>
|
||||
/// <seealso cref="RuntimeDefinedParameterDictionary"/>
|
||||
#nullable enable
|
||||
public interface IDynamicParameters
|
||||
{
|
||||
/// <summary>
|
||||
@@ -62,8 +64,10 @@ namespace System.Management.Automation
|
||||
/// may not be set at the time this method is called,
|
||||
/// even if the parameters are mandatory.
|
||||
/// </returns>
|
||||
object GetDynamicParameters();
|
||||
object? GetDynamicParameters();
|
||||
}
|
||||
#nullable restore
|
||||
|
||||
/// <summary>
|
||||
/// Type used to define a parameter on a cmdlet script of function that
|
||||
/// can only be used as a switch.
|
||||
|
||||
Reference in New Issue
Block a user