Thursday, January 19, 2012

manageit



When an object is allocated on the heap it belogs in generation 0.

Each garbage collection that  object survives inceases its generation by 1

The base .NET object System::Object contains an overridable method Finalize that is automatically called by the framework in order to give the object a chance to release all resources before it's destroyed. The signature is

protected: virtual void Object :: Finalize();



Difference Between the CTS and CLS:

CLS: This is a guideline that to communicate smoothly with outher .net languages.It is set of language rules that defines the language standards for dotnet.

CTS: it is used to communciate with other language. it means to match the data types, library methods, class ,
cts make us feel it as a common environment withou considering the langaurage.

vb and c++ not compatiable with each other so that CTS plays important role with using  INT32.

CTS and CLS are the major components through wihic the interoperability is achived in .net framework.
CLS (Common Langaurag Specification ) specifies some set fo rules for all the net compilers. In theis process
it mkes use of the CTS (common type system), which is subset OF CLS.CTS consist of tyopes (both value type and reference type).

To Make clear::
If we are declaring a interger type in vb.net dim i as integer;
if we are declaring the same integer type i C#.net int i;
both of these are converted to the from i as int32 so, irresperctive of te language written in they are converted to intermediate langauage which CLR can read and understand.

No comments:

Post a Comment

Qualcomm Short Term

  113 is the SL. 1st Target by mid July.

Total Pageviews