Equivalent to Double.doubleToLongBits in C #?

there is the Java method Double.doubleToLongBits , which basically gets double and returns a long with the same bits.
How can I do this in C #?
Thanks you

+7
source share
2 answers

BitConverter.DoubleToInt64Bits would be a good alternative.

http://msdn.microsoft.com/en-us/library/system.bitconverter.doubletoint64bits.aspx

+15
source
+4
source

All Articles