An Implementation of BitConverter.SingleToInt32Bits

Back in the day when I did more Java development, I used Apache’s Commons Lang regularly to do all kinds of things like string manipulations and implementing Object.equals() and Object.hashCode().

Not too long ago, I started working more with C# and the .NET Framework and I found myself wanting some of the functionality of Commons Lang for the .NET platform. The closest thing I could find was Artur Trosin’s port of the EqualsBuilder and HashCodeBuilder classes from Commons Lang to C#. Artur’s excellent port saved me a lot of work. He even provided ported unit tests, which was a nice touch.
Continue reading » An Implementation of BitConverter.SingleToInt32Bits