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 ?



I have a component with 3 parameter and deployed to client side now i changed my dll method which t..

Answer / 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

More ASP.NET Interview Questions

Explain an object, class and method.

0 Answers  


How can we do the client side validation and Server side validations? But i told that At client side by with the help of validations control or by javascript? But I dont know about the Server side controls Explain?

5 Answers   iSoft, TCS,


List the major built-in objects in asp.net?

0 Answers  


How is session id generated?

0 Answers  


How u refer webservices?

0 Answers   Microsoft,


If i have a web page, and one web user control, where in web page contains a text box, and web user control have check box, if i place a web user control in the webpage, when i check the check box, the out put should show it is checked or not. How we can do this?

1 Answers   CGI,


What are the different types of sessions in asp.net?

0 Answers  


What is active web pages?

0 Answers  


Suppose you want a certain ASP.NET function executed on MouseOver over a certain button. Where do you add an event handler?

1 Answers   Zenith,


Difference Between ReadOnly and Constant Variable in compile time and Run Time.

3 Answers   Phoenix Technologies, Quadrant,


What is the usage of DelegatingHandler?

0 Answers  


How many classes can a single .NET DLL contain?

6 Answers   SoftSol,


Categories