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

Explain the use of view state?

565


What are strong names?

587


What is the equivalent of date() and time() in asp.net?

515


In the Repeater control which way you can edit?

651


Is razor a programming language?

532






Explain file-based dependency and key-based dependency.

573


Difference between DataGid and Girdview? Difference b/w .Net 2.0, 3.0 and 3.5 ? Diff b/w dispose & Finialize Methods?

2029


Suppose you want an asp.net function (client side) executed on the mouseover event of a button. Where do you add an event handler?

566


What is a reflection?

586


Define cookie.

568


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

533


how to transfer the file from client to server using asp.net

593


What is the use of asp.net web api?

582


What is an axd file?

594


How do I use a proxy server when invoking a web service?

527