clone of https://github.com/englishtown/csharp-driver/commit/9894db0a5f240a185b7cd73cb3d00878b62536af#diff-2453fcefab3cc3004992881028723086R358
by  https://github.com/teddymaef