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


Please Help Members By Posting Answers For Below Questions

Where viewstate value is stored in asp.net?

591


Explain asp.net page life cycle?

609


What is Bundling and Minification in MVC?

578


Describe the .net base class library.

529


What is viewstate? What does the “enableviewstate” property do?

521






Explain how asp.net different from asp?

557


How you will improve web application performance?

547


What are the advantages of Web API?

634


Which is better viewstate or session?

513


Explain about consistent programming model in the .NET framework?

589


Can you explain how ASP.NET application life cycle and page life cycle events fire?

564


How does asp net store session ids by default?

532


Explain the procedure to handle the process request using mhpm events fired? : asp.net mvc

531


Disable Mouse right click on web page in asp.net?

580


What is the main function of url routing system in asp.net mvc? : asp.net mvc

492