New Message on dotNET User Group Hyd

Varad's .NET Info

Reply
  Reply to Sender   Recommend Message 26 in Discussion
From: Varad_RS

#) 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="">

 
Regards,
Varad
Systems Analyst
Microsoft Solutions Group
Satyam Computer Services LTD.,

View other groups in this category.

Click Here!
Also on MSN:
Start Chatting | Listen to Music | House & Home | Try Online Dating | Daily Horoscopes

To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.

Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.

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.
Remove my e-mail address from dotNET User Group Hyd.

Reply via email to