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

Which data type does the rangevalidator control support?

0 Answers  


Explain how cookies work. Give an example of cookie abuse.

0 Answers  


Define WCF ABC , Diffrent Contract. Diff b/w Wcf and in webservice

2 Answers   Syntel,


Define viewstate in .net?

0 Answers  


what is the MSIL assembler do?

1 Answers  






How do you trap errors in ASP and how do you invoke a component in ASP ?

1 Answers   Cognizant,


What is mvc in asp.net tutorial? : Asp.Net MVC

0 Answers  


What is the main use of Response.Output.Write()?

4 Answers   Siebel,


When cookie will expire?

0 Answers  


What is difference between Lambda Expression and LINQ in ASP.NET?

0 Answers   Viscus Infotech,


what are the levels of securities need to be considered for the finincial web application?

1 Answers  


What is difference between session and cookie?

0 Answers  


Categories