Sunday 26 June 2016

Internal Structure of C#



The design principle of C# is to avoid COM. Because COM has several issues which arise in today’s
World , that is because registry is not common place holder for all the operating system. Like android apple etc. and COM always need to register in registry file.
 C# provides its own placeholder to configure the dll or register the dll which is called assembly.
C#------à dll (appdomain + MSCORIE.DLL)
To register the dll into assembly folder we need to execute the below command (Register the dl lint GAC)


>GACUTIL –i  <name of dll>

 And to uninstall dll from GAC

>GACUTIL –U <name of dll>


What is COM Component:

All the dll created from C++ , visual basic or VC++ are required to be register into registry file to make usable.
Registry is a place holder in operating system which follow the FAT  file architecture.

"If any dll Configured or mapped to registrynit is said to be COM based dll"

To Map the dll into registry :

 we have a tool named as REGSVR32   used to register the dll into registry.
 command: > REGSVR32 <name of dll>

To unregister the dll from registry

 command: > REGSVR32 /u <name of dll>





No comments:

Post a Comment

Contact Us:

Email:

Vinodkumar434@gmail.com,
vinodtechnosoft@gmail.com

Skype Name:

vinodtechnosoft