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
Why do we need asp.net?
How asp.net mvc differs from asp.net web forms? : asp.net mvc
Give 2 examples for scenarios when routing is not applied?
How you will manage the state of ASP.NET controls?
Explain about Automatic resource management?
What is inproc mode in session?
Explain about consistent programming model in the .NET framework?
What is http response header?
is there any third party tools are using in .net technologies? what are there ? give me the brief introduction?
What are the best practices to follow to secure connection strings in an ASP.NET web application?
Explain swagger components.
What is data cache in sql server?
Why web api is better than wcf?
What is meant by ispostback in asp net?
What is the difference between debug and release?