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