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
Define web services in asp.net.
Explain form level validation and field level validation?
Explain about asp.net state management?
What is the use of view state?
What are ASHX files?
How do I use a proxy server when invoking a web service?
What are the benefits of view state?
What is a swagger in web api?
What is connection pooling and how to enable and disable connection pooling?
How many validators do ASP.NET have?
What are different methods of session maintenance in asp.net?
What is asp.net web application?
What is the difference between equals() and == in c#?
What is the viewstate in asp.net?
Explain About duration in caching technique