Lucene.Net.LukeNet.EditDocument.SaveFieldContent C# (CSharp) Метод

SaveFieldContent() приватный Метод

private SaveFieldContent ( int fieldIndex ) : void
fieldIndex int
Результат void
        private void SaveFieldContent(int fieldIndex)
        {
            if (fieldIndex > fields.Count - 1) return;

            float boost,
                  oldBoost = ((Field)fields[fieldIndex]).GetBoost();
            Field field = Legacy.CreateField((string)lstFields.SelectedItem,
                          txtContent.Text,
                          chStored.Checked,
                          chIndexed.Checked,
                          chTokenized.Checked,
                          chTVF.Checked);
            try
            {
                boost = Single.Parse(txtBoost.Text, System.Globalization.NumberFormatInfo.InvariantInfo);
            }
            catch (Exception)
            { boost = oldBoost; }
            field.SetBoost(boost);

            fields[fieldIndex] = field;
        }