Enable nullable: System.Management.Automation.IDynamicParameters (#14153)

This commit is contained in:
Staffan Gustafsson
2021-05-18 20:58:39 +05:00
committed by GitHub
parent c547ccd478
commit 77f25bf2a7
@@ -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.