Covers topics on the Microsoft Certification Exam for the .NET Framework (Exam 70-536, Microsoft .NET Framework - Application Development Foundation)

Tuesday, March 4, 2008

What does "type-safe" mean?

After you write your code, it is translated into Microsoft Intermediate Language (MSIL). MSIL is a CPU independent form that is later change into code specific to the machine it is running on by something called the Just In Time Compiler (All that is important is that the MSIL isn't transfered into machine code until you need it)

As the JIT compiler is translating the MSIL into machine code, it is also checking to see if variables are type safe. It does this by checking to make sure that variables do not access memory locations that they are not supposed to. This ensures that each application "plays well with others" by preventing memory corruption and crashes.

Additional Resources
Type safety (Wikipedia)

No comments:

Support This Site

LinkShare  Referral  Prg