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 Posted / 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 View All Answers
Explain the use of view state?
What are strong names?
What is the equivalent of date() and time() in asp.net?
In the Repeater control which way you can edit?
Is razor a programming language?
Explain file-based dependency and key-based dependency.
Difference between DataGid and Girdview? Difference b/w .Net 2.0, 3.0 and 3.5 ? Diff b/w dispose & Finialize Methods?
Suppose you want an asp.net function (client side) executed on the mouseover event of a button. Where do you add an event handler?
What is a reflection?
Define cookie.
Explain the procedure to handle the process request using mhpm events fired? : asp.net mvc
how to transfer the file from client to server using asp.net
What is the use of asp.net web api?
What is an axd file?
How do I use a proxy server when invoking a web service?