Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding optional parameters to existing sub
Message
 
À
04/05/2007 18:43:31
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01222670
Message ID:
01222832
Vues:
16
This message has been marked as the solution to the initial question of the thread.
Yes everytime the signature of a method changes you defintitely need to recompile. You might be able to get away with polymorphism though by creating an overloaded method that has the new parameter signature without recompiling.

+++ Rick ---

>I have an assembly that defines a bunch of shared subs and functions that are called by a bunch of other assemblies. If I change the signature of a sub (added an optional parameter to the end of the parameter list) in the Common assembly do I need to re-compile all assemblies that might call the Common Assembly? From the errors I generated today, that appears to be the case. Just would like to know why?
>
>Thanks
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform