public MapReduce(IMongoDatabase database, string name, Type rootType) { IsModifiable = true; if(database == null) throw new ArgumentNullException("database"); if(name == null) throw new ArgumentNullException("name"); if(rootType == null) throw new ArgumentNullException("rootType"); _rootType = rootType; _database = database; Command = new MapReduceCommand(name); }