I have a component with 3 parameter and deployed to client
side now i changed my dll method which takes 4 parameter.How
can i deploy this without affecting the clent?s code ?
Answer Posted / pankaj verma
If a component's parameters are varying then it can be deployed without affecting the client in two ways:
1. In C# 4.0 and above, We can use optional parameters that work like this:
public void foo(int i, int j, int k, int a = 0) --a is newly added parameter
{
//Function logic here
}
2. Overload the method.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Which protocol is used to call a web service?
Explain the advantages of caching?
How do sessions work?
How is my content secured from unauthorized access?
Is asp.net 64-bit enabled? How?
What is css and what is it used for?
When we use cookie less session? Explain its working?
How Session use Cookies in State Management?
Explain code snippet to register exception filters from controller?
What’s the difference between response .redirect and server.transfer?
What is the use of session?
To bind columns manually which tags do you need to add within the asp:datagrid ?
i want to implement grid view value in paypal site. so how to create this code in asp.net with C#
Asp pages that worked pefectly on windows 2000 server and iis 5.0 do not work on windows 2003 server with iis 6.0. Asp.net pages work fine. Why?
What's the ASP.Net Application life cycle?