26.02.2015 Views

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Binary Compatibility<br />

VB makes it possible to extend an existing class or interface by adding new methods and properties<br />

etc. and yet still retain binary compatibility. It can do this, because it silently creates a new interface<br />

ID for the extended interface and adds registration code to register the original interface ID but<br />

with a new Forward key containing the value of this new interface ID. COM will then substitute<br />

calls having the old ID with the new ID and hence applications built against the old interface will<br />

continue to work (assuming the inner workings of the component remain backward compatible!).<br />

With this setting, VB will not change any of the existing class, interface or type library ID’s, however<br />

in order that it can do so, VB requires the project to specify an existing compiled version that it can<br />

compare against to ensure that existing interfaces have not been broken<br />

(A)What is equivalent for regsvr32 exe in .<strong>NET</strong> ?<br />

Regasm<br />

51

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!