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
Where viewstate value is stored in asp.net?
Explain asp.net page life cycle?
What is Bundling and Minification in MVC?
Describe the .net base class library.
What is viewstate? What does the “enableviewstate” property do?
Explain how asp.net different from asp?
How you will improve web application performance?
What are the advantages of Web API?
Which is better viewstate or session?
Explain about consistent programming model in the .NET framework?
Can you explain how ASP.NET application life cycle and page life cycle events fire?
How does asp net store session ids by default?
Explain the procedure to handle the process request using mhpm events fired? : asp.net mvc
Disable Mouse right click on web page in asp.net?
What is the main function of url routing system in asp.net mvc? : asp.net mvc