Reverse Engineer .NET DLLs

If you’ve ever wanted to know how something in the .NET Framework does what it does, check out .NET Reflector. This awesome utility will reverse engineer compiled .NET dlls back into C# or VB.NET code. The example below is the reverse-engineered implementation for String.GetHashCode:

public override unsafe int GetHashCode(){      fixed (char* text1 = ((char*) this))      {            char* chPtr1 = text1;            int num1 = 0x15051505;            int num2 = num1;            int* numPtr1 = (int*) chPtr1;            for (int num3 = this.Length; num3 > 0; num3 -= 4)            {                  num1 = (((num1 << 5) + num1) + (num1 >≫ 0x1b)) ^ numPtr1[0];                  if (num3 <= 2)                  {                        break;                  }                  num2 = (((num2 << 5) + num2) + (num2 >> 0x1b)) ^ numPtr1[1];                  numPtr1 += 2;            }            return (num1 + (num2 * 0x5d588b65));      }}

For more information about Lutz Roeder’s .NET Reflector, see the .NET Reflector site.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


The Latest

iOS app development

The Future of iOS App Development: Trends to Watch

When it launched in 2008, the Apple App Store only had 500 apps available. By the first quarter of 2022, the store had about 2.18 million iOS-exclusive apps. Average monthly app releases for the platform reached 34,000 in the first half of 2022, indicating rapid growth in iOS app development.

microsoft careers

Top Careers at Microsoft

Microsoft has gained its position as one of the top companies in the world, and Microsoft careers are flourishing. This multinational company is efficiently developing popular software and computers with other consumer electronics. It is a dream come true for so many people to acquire a high paid, high-prestige job

your company's audio

4 Areas of Your Company Where Your Audio Really Matters

Your company probably relies on audio more than you realize. Whether you’re creating a spoken text message to a colleague or giving a speech, you want your audio to shine. Otherwise, you could cause avoidable friction points and potentially hurt your brand reputation. For example, let’s say you create a