clone of https://github.com/datastax/csharp-driver/commit/171897ac79382da03ffeea22818bf2069c9abbe2 by https://github.com/thunderstumpges