public PowerShellParameterMetadata(string name, ParameterMetadata commandMetadata) { Name = name; IsDynamic = commandMetadata.IsDynamic; SwitchParameter = commandMetadata.SwitchParameter; Type = ConversionFactory.MapParameterType(commandMetadata.ParameterType); ParameterSets = ConversionFactory.Convert(commandMetadata.ParameterSets); }
public PowerShellCommandMetadata(CommandMetadata commandMetadata) { Name = commandMetadata.Name ?? string.Empty; Parameters = ConversionFactory.Convert(commandMetadata.Parameters); }