Beruflich Dokumente
Kultur Dokumente
NET
SIMPLE,MODERN,INTER OPERABILITY,TYPE SAFE PROGRAMMING LANGUAGE
Above example will cause an error for all statements because we cannot add string
to integer (cannot implicitly covert type string to int) same way for integer to string
and double to int and so on.
The C# language compilers always produce type safe code, which is verified to be
type safe during JIT compilation.
Type safety helps isolate objects from each other and therefore helps protect them
from inadvertent or malicious corruption. This isolation helps ensure that assemblies
cannot adversely affect each other and it increases application reliability.
How Type Safety Ensured
When a code runs on CLR (Common Language Runtime) it performs the type safe
check called type safe verification and this is done during Just in Time Compilation
(JIT) by a tool called peverify.exe.
C# Versionable
.NET framework handles the versioning.
Since C# code which runs on .NET framework so it is a versioning language.
In simple words we can upgrade code of an existing running application (i.e.
creating a new "DLL" with new version) and that upgraded code we can deploy in
the same application without any conflict with the old existing code (Since old code
is using different or old version).
We can have different versions of the same component at the same time and our
applications will know automatically which version to use and what version not to
use.
Note: Versioning is done only on assemblies with strong names.