On Thu, 23 Oct 2014 02:01:07 GMT, Domingo Alvarez Duarte wrote:

Hello !

I'm trying to write a function that accepts a mongodb collection cursor as parameter but I do not know how to do that as cursor is a template type.

Can anyone give some help on this ?

You can use template too:

protected void sendCollectionListAsDataArrayJson2(T)(T collection_list, HTTPServerResponse res, in string[] fields) {
...
}