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 the asp.net mvc folder conventions? : asp.net mvc

0 Answers  


In how many ways we can retrieve table records count?

0 Answers  


what if we delete web.config or machine.config? will a website work if we delete webconfig....or if we delete machine config?

4 Answers   TCS,


What are Themes? What is their use ?

1 Answers  


What is new asp.net core?

0 Answers  






how we deploy the asp.net 2.0 application

2 Answers   Logistics,


What r Callbacks in ASP.NET?

1 Answers  


Suppose you display a data having 200 records in a datagrid. Then you edit 100 records of them. Now when you will press update button,all 100 records should be updated in single shot rather than reading every record and updating. How to do it?

4 Answers   Wipro,


Which institute provide good Project training on .Net technologies in hyd?

5 Answers  


Define web services in asp.net.

0 Answers  


What is microsoft windows sharepoint services?

0 Answers  


What are typed datasets?

1 Answers   IBS,


Categories