/// <summary> /// Initializes a new instance of the <see cref="OptionGroupInfo"/> class. /// </summary> /// <param name="usageInfo">The <see cref="UsageInfo"/> containing this <see cref="OptionGroupInfo"/></param> /// <param name="optionGroup">The option group.</param> /// <param name="optionStyles">The option styles.</param> internal OptionGroupInfo(UsageInfo usageInfo, OptionGroup optionGroup, OptionStyles optionStyles) { mOptionGroup = optionGroup; mUsageInfo = usageInfo; foreach (KeyValuePair <string, Option> entry in optionGroup.Options) { mOptions.Add(entry.Key, new OptionInfo(mUsageInfo, entry.Value, optionStyles)); } }
/// <summary> /// Initializes a new instance of the <see cref="OptionGroupInfo"/> class. /// </summary> /// <param name="usageInfo">The <see cref="UsageInfo"/> containing this <see cref="OptionGroupInfo"/></param> /// <param name="optionGroup">The option group.</param> /// <param name="optionStyles">The option styles.</param> internal OptionGroupInfo(UsageInfo usageInfo, OptionGroup optionGroup, OptionStyles optionStyles) { mOptionGroup = optionGroup; mUsageInfo = usageInfo; foreach (KeyValuePair<string, Option> entry in optionGroup.Options) { mOptions.Add(entry.Key, new OptionInfo(mUsageInfo, entry.Value, optionStyles)); } }