MongoDB db.runCommand() from C#
问题 Hi I'm using C# with MongoDB Official driver v2.2.4 and I want to run db.runCommand() on the admin database. So far i have this and i am able to connect to the admin database but db.runCommand is giving me this error "An unhandled exception of type 'System.FormatException' occurred in MongoDB.Bson.dll Additional information: JSON reader was expecting a value but found 'db'." MongoClient client = new MongoClient(); database = client.GetDatabase("admin"); var collection = database.GetCollection