ScrewTurn.Wiki.SearchEngine.DumpedChange.DumpedChange C# (CSharp) Method

DumpedChange() public method

Initializes a new instance of the DumpedChange class.
If , or are null.
public DumpedChange ( DumpedDocument document, List words, List mappings ) : System
document DumpedDocument The dumped document data.
words List The list of dumped words data.
mappings List The list of dumped mappings data.
return System
        public DumpedChange(DumpedDocument document, List<DumpedWord> words, List<DumpedWordMapping> mappings)
        {
            if(document == null) throw new ArgumentNullException("document");
            if(words == null) throw new ArgumentNullException("words");
            if(mappings == null) throw new ArgumentNullException("mappings");

            // mappings can be empty if the document did not have any indexable content
            //if(mappings.Count == 0) throw new ArgumentException("Mappings cannot be empty", "mappings");

            this.document = document;
            this.words = words;
            this.mappings = mappings;
        }
DumpedChange