02-10-2012, 01:46 PM
.NET Framework & C#
NET.ppt (Size: 219 KB / Downloads: 61)
Problems Background
Good code is hard to write
All system features in any language
COM problems
Platform Interoperability
Automatic memory management
Object-Oriented features in and between all PLs
Safety & Security
Better Access to OS functions
Interoperate with COM (both as client & server)
.Net platform features
Automatic memory management
Explicit Versioning
OO features in any languages
Accessing system functionality throw a hierarchical namespace
Code security
Interoperability with COM
Namespaces
A logical division within which a name need to be unique
The best way to handle a large list of system objects and functions
System namespace (implemented in several separated DLLs
We can import a namespace
Your code can have its own namespace
VersioningDLL Hell
Replacing a DLL used by an existing client, with a newer version (or vice versa)
.NET provides a standard way to specify
version
Each client assembly uses its own specified versions of related assemblies
Object oriented programming
Whether to smarten up non-object oriented languages or dump down OO languages
.NET provides all languages with inheritance and constructors features
Virtual Object Model
.NET memory management
.NET CLR provides all languages with automatic memory management.
Garbage collector automatically removes
unreferenced objects
You can force a garbage collection manually