As you might have already heard .Net is type safe. Specifically talking CLR provides type safety at runtime, some .Net languages (example: C#) work with CLR to provide type safety at compile time.
So what does the term type safe mean?
Let’s find what Wikipedia says:
In computer science, type safety is the extent to which a programming language discourages or prevents type errors. A type error is erroneous or undesirable program behavior caused by a discrepancy between differing data types for the program’s constants, variables, and methods (functions), e.g., treating an integer (int) as a floating-point number (float). Blah blah blah..
Ok, Now we know that type safety has something to do with preventing the programmer from accessing the type as other than what it is.
Well, C# and CLR are pretty good in this, they work together to push you into the Pit…
View original post 379 more words