Tuesday, December 11, 2012

Difference between .dll and .exe Files

Difference between .dll and .exe Files

.dll files
.exe files
Executes in the sale process space as that of its client application and therefore is called an in-process executable.
Web applications, windows services and COM+ components are normally complied into .dll files.
Executes in its own process space that is separate from that of the client application, which calls is. Therefore called as out-of process executable.
Runs faster
Runs slower
If .dll files crash then they crash their client application as well.
.exe files are more stable than .dll files because when they crash ,they don’t crash the client application

Differences between the methods and properties in .Net

Methods
Properties
Methods can take arguments.       
Properties generally do not take any arguments, only the value for setting a property.
Methods—if they return a value—are read-only.
All properties return a value. However some properties are read-only, while others are read/write.
A method can be a function that performs, regardless of whether the object's state is involved.         
Properties usually represent some aspect of an object's state.


No comments:

Post a Comment