-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: Varad_RS
Message 22 in Discussion




#) Important 
Note: Breaking changes when using COM Interop 

Keep in mind that when you 
add methods to an assembly you must retain the same order within the code file 
(and resulting MSIL code within the compiled assembly) otherwise the interface 
sequence will change and you will break compatibility.  If you always add 
new code to the end of a code file you'll never see this but if you add COM 
visible methods between existing interface methods you'll change the order of 
the interface because regasm creates and registers the interface in the order 
that the methods appear within the physical assembly.
#) What exactly is 
the effect of declaring a methods as "virtual new"? 

The new modifier applied to a 
virtual function allows you to explicitly hide a member inherited from a base 
class hence the �virtual final� in the IL.  

>From the docs:  "To hide 
an inherited member, declare it in the derived class using the same name, and 
modify it with the new modifier."

A class-member-declaration is 
permitted to declare a member with the same name or signature as an inherited 
member. When this occurs, the derived class member is said to hide the base 
class member. Hiding an inherited member is not considered an error, but it does 
cause the compiler to issue a warning. To suppress the warning, the declaration 
of the derived class member can include a new modifier to indicate that the 
derived member is intended to hide the base member. 

To learn more about 
Hiding through Inheritance check out 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csspec/html/vclrfcsharpspec_3_7_1_2.asp
 
 
Regards,
Varad
Systems Analyst
Microsoft Solutions Group
Satyam Computer Services 
LTD.,

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to