Bamboo.Prevalence.Indexing.FullText.TermOccurrenceCollection.Add C# (CSharp) Метод

Add() публичный Метод

Adds the information related to the new occurrence of the term in the field and position passed as argument. If a TermOccurrence object for the specified field is already in the collection, the new position information is simply added to the existing TermOccurrence object. Otherwise a new TermOccurrence object will be created and added to the collection.
public Add ( IndexedField field, int position ) : void
field IndexedField field where the term /// was found
position int /// position in the field where the term was found
Результат void
		public void Add(IndexedField field, int position)
		{
			foreach (TermOccurrence to in InnerList)
			{
				if (to.Field == field)
				{
					to.Add(position);
					return;
				}
			}
			InnerList.Add(new TermOccurrence(field, position));
		}