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 the types of configuration files.
What is the advantage of mvc over asp.net? : Asp.Net MVC
Can action method static?
Explain the different parts that constitute ASP.NET application?
Differences between “dataset” and “datareader”.
What is the concept of view state in asp.net?
What is protected configuration?
Explain how is a property designated as read-only?
What is difference between asp state management and asp.net state management? How can we pass info between 2 asp.net pages?
14. What are your Future Plans for Swatz Oils GROUP U.K?
Explain the server control events of asp.net ?
What are the advantages of using Master Pages?
Explain file-based dependency and key-based dependency.
What is cached data phone?
What is asp.net ajax?