Пример #1
0
 /// <summary>
 /// Create a new query object for common PowerShell data.
 /// </summary>
 /// <param name="commonPowerShellData">The mutable data object holding common data information.</param>
 public CommonPowerShellData(Data.CommonPowerShellData commonPowerShellData)
 {
     _parameters = new Lazy <Tuple <IReadOnlyDictionary <string, ParameterData>, IReadOnlyDictionary <string, ParameterData> > >(() => CreateParameterTable(commonPowerShellData.Parameters, commonPowerShellData.ParameterAliases));
 }
 /// <summary>
 /// Create a new query object for common PowerShell data.
 /// </summary>
 /// <param name="commonPowerShellData">The mutable data object holding common data information.</param>
 public CommonPowerShellData(Data.CommonPowerShellData commonPowerShellData)
 {
     Parameters       = CreateParameterTable(commonPowerShellData.Parameters, commonPowerShellData.ParameterAliases, out IReadOnlyDictionary <string, ParameterData> parameterAliases);
     ParameterAliases = parameterAliases;
 }