Skip to content

Commit

Permalink
Enable nullable: System.Management.Automation.IDynamicParameters (Pow…
Browse files Browse the repository at this point in the history
  • Loading branch information
powercode authored May 18, 2021
1 parent c547ccd commit 77f25bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/System.Management.Automation/engine/MshCmdlet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
namespace System.Management.Automation
{
#region Auxiliary

/// <summary>
/// An interface that a
/// <see cref="Cmdlet"/> or <see cref="Provider.CmdletProvider"/>
Expand All @@ -31,6 +32,7 @@ namespace System.Management.Automation
/// <seealso cref="PSCmdlet"/>
/// <seealso cref="RuntimeDefinedParameter"/>
/// <seealso cref="RuntimeDefinedParameterDictionary"/>
#nullable enable
public interface IDynamicParameters
{
/// <summary>
Expand Down Expand Up @@ -62,8 +64,10 @@ public interface IDynamicParameters
/// 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.
Expand Down

0 comments on commit 77f25bf

Please sign in to comment.