R
Raja Banerjee
Whether the entire Dll is loaded into memory or not has become a design
criteria in my current project. If with .NET the entire DLL is not
loaded I will create projects to compile into large DLLs. Else I will
split up the logic to create as many DLLs as possible.
I always believed that DLLs were loaded at runtime "as and when needed"
in the pre .NET world. Hence if a new class from a DLL needed to be
instantiated the entire DLL needed to be loaded into memory.
Recently I was advised that with .NET the CLR can load only the
information needed for one class to work( Its dependencies , methods
and everything else you get from the metadata)
With my current understanding of the framework I was not able to pull
up much information from MSDN. Any comments or pointers on this topic
is greatly appreciated.
Thanks
Raja
criteria in my current project. If with .NET the entire DLL is not
loaded I will create projects to compile into large DLLs. Else I will
split up the logic to create as many DLLs as possible.
I always believed that DLLs were loaded at runtime "as and when needed"
in the pre .NET world. Hence if a new class from a DLL needed to be
instantiated the entire DLL needed to be loaded into memory.
Recently I was advised that with .NET the CLR can load only the
information needed for one class to work( Its dependencies , methods
and everything else you get from the metadata)
With my current understanding of the framework I was not able to pull
up much information from MSDN. Any comments or pointers on this topic
is greatly appreciated.
Thanks
Raja