private static IEnumerable <SelectionData> GetOptionNames(
            TaleWorlds.MountAndBlade.ManagedOptions.ManagedOptionsType type)
        {
            int i1;

            if (type == TaleWorlds.MountAndBlade.ManagedOptions.ManagedOptionsType.Language)
            {
                List <string> languageIds = LocalizedTextManager.GetLanguageIds(NativeConfig.IsDevelopmentMode);
                for (i1 = 0; i1 < languageIds.Count; ++i1)
                {
                    yield return(new SelectionData(false, languageIds[i1]));
                }
                languageIds = (List <string>)null;
            }
            else
            {
                i1 = ManagedSelectionOptionData.GetOptionsLimit(type);
                string typeName = type.ToString();
                for (int i2 = 0; i2 < i1; ++i2)
                {
                    yield return(new SelectionData(true, "str_options_type_" + typeName + "_" + i2.ToString()));
                }
                typeName = (string)null;
            }
        }
 public ManagedSelectionOptionData(TaleWorlds.MountAndBlade.ManagedOptions.ManagedOptionsType type)
     : base(type)
 {
     this._selectableOptionsLimit = ManagedSelectionOptionData.GetOptionsLimit(type);
     this._selectableOptionNames  = ManagedSelectionOptionData.GetOptionNames(type);
 }