Use params in ImportPSModule (#7933)

This commit is contained in:
Ilya
2018-10-05 09:31:32 +05:00
committed by GitHub
parent 20b2e3df37
commit 09f5471346
@@ -1842,10 +1842,13 @@ namespace System.Management.Automation.Runspaces
/// </summary>
/// <param name="name">The modules to add</param>
/// <returns></returns>
public void ImportPSModule(string[] name)
public void ImportPSModule(params string[] name)
{
if (name == null)
{
throw new ArgumentNullException("name");
}
foreach (string n in name)
{
ModuleSpecificationsToImport.Add(new ModuleSpecification(n));