Bamboo.Prevalence.Indexing.SearchResult.ToRecordArray C# (CSharp) Method

ToRecordArray() public method

Copies all the records to an array. The order is mantained so that this[N].Record == resultingArray[N] is valid for every 0 <= N < this.Count.
public ToRecordArray ( Type recordType ) : Array
recordType System.Type array element type
return System.Array
		public Array ToRecordArray(Type recordType)
		{			
			object[] records = (object[])Array.CreateInstance(recordType, _hits.Count);
			for (int i=0; i<records.Length; ++i)
			{				
				records[i] = ((SearchHit)_hits[i]).Record;
			}
			return records;
		}

Same methods

SearchResult::ToRecordArray ( ) : Array