MongoDB.MapReduce.MapReduce C# (CSharp) Method

MapReduce() public method

Initializes a new instance of the MapReduce class.
public MapReduce ( IMongoDatabase database, string name, Type rootType ) : System
database IMongoDatabase The database.
name string The name.
rootType System.Type Type of the root.
return System
        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);
        }