can we write inline query from c# for mongodb?
Yes it possible but no nested query is possible.Your data needs to be structured.
See below thread, may helpful
http://stackoverflow.com/questions/6120629/can-i-do-a-text-query-with-the-mongodb-c-sharp-driver