Professional Documents
Culture Documents
Net
Framework Basics, after a long time. I Hope That These Pieces Of Document Really
Help You Understand The Basic Concepts In a Simpler Manner And Grow in us a
Passion for .Net Technology ! In This Section I shall Deal With The Following And I
Won’t Be Beating Around The Bush !!!
Visual Studio
.Net Services
.Net Framework
Operating System
Here The Operating System Forms The Base .On top of it is a layer consisting of the
.Net Framework, .Net Services which Include Data and other Servers Which Help us
to manage Data , for example-SQL Server…The .Net Building Block is in fact an
outcome of the .Net Framework along With The .Net Services for example-.Net
Passports.
2) .Net Framework
Web Forms
Windows Forms
Web Services
Note That all that you are dealing in .Net are objects
That are derived from the namespace: System.Object….That means everything in
.net is actually an object of the class “Object”.This is the basic class and forms the
basis for all the other .Net Classes.
PE Header
Reference(.data,.rdata)
Now .Net Executables are also in PE Format but some additional information
is added like CLR Header and CLR Data.
PE Header
CLR Header
CLR Data
Metadata
IL code
Reference(.data,.rdata)
Got The Difference? When You execute the file of this format, Windows Sees
the CLR header and Transfers the control to the CLR.Now if no .Net
Framework is installed- no CLR-then no execution possible….Understood???
-Executes them
Native code
.Net supports Language Integration and Interoperability. You can Write one module
in C# and other in VB and then integrate these two modules, call a function in one
from the other module….
CTS or Common Type System lays down a set of rules that a compiler must comply
to in order to support Language Interoperability. Whereas CLS or common language
specification says that the compiled code must be in the form of Common
Intermediate language to help Language Integration.
CTS has laid down some Types that any .Net compatible Program must possess in
order to be intergratable because all these types have the similar meaning in all the
different languages:
-Value Types
-Reference Types
-Delegates
-Classes
-Interfaces
Value Types
Value types represent Values allocated on the memory stack. These Cannot ne
Null.When Value Types are passed onto funcyions their copy is made and
passed.Any change to the duplicate version won’t affect the original one.Value
types are useful when the object is small.
Ex:
Enumerations.
Reference Types
These Represent some heap based objects and show the address or act as a
pointer to values in the stack.The modification to these will modify the original
data.These are used when objects are large.
Ex: Arrays
Classes
Interfaces
Delegates
Boxing example:
UnBoxing
Delegates
Delegates are very special coz they are the basis for the concept of EVENT
HANDLING.I do not have deep knowledge in delegates but can provide you with
information which will give you some basic idea…
They have a definite prototype which any of its function must follow.
Example:
Using System;
Class DelExample
Console.Writeln(h);
}
That’s all in this Episode Folks…Ill Keep Writing Whenever I get Time…Please do go
through these items and send me your response either by posting in this website or
via email
Regards,
Clement
clementlloyd@live.com