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 / 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 |
Write code to send e-mail from an asp.net application?
What is the difference between ldap and active directory?
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.
How can you handle exceptions in asp.net?
Breifly explain about stack and heap memory Managemet?
Is web config mandatory?
what is session ?how sessions are handeled in application? write the clauses of sql server in their order.
Where is cookie used in asp.net?
What are asynchronous callbacks?
What is WCF? Pls Explain clearly with exmple.
What is runat?
Demonstrate Render and PreRender?