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

Write code to send e-mail from an asp.net application?

0 Answers  


What is the difference between ldap and active directory?

0 Answers  


Could u send me the answer for this question as soon as possible. Im using 'System.net.mail.mailmessage' namespace for sending a mail from my application. What should I mention in 'system.net.mail.mailmessage.to' property and What should I mention in 'system.net.mail.mailmessage.from' property.

1 Answers  


How can you handle exceptions in asp.net?

0 Answers  


Breifly explain about stack and heap memory Managemet?

2 Answers  






Is web config mandatory?

0 Answers  


what is session ?how sessions are handeled in application? write the clauses of sql server in their order.

3 Answers   Olive Tech,


Where is cookie used in asp.net?

0 Answers  


What are asynchronous callbacks?

0 Answers   Accenture,


What is WCF? Pls Explain clearly with exmple.

3 Answers   HCL, iGate,


What is runat?

0 Answers  


Demonstrate Render and PreRender?

0 Answers   QuestPond,


Categories