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 |
Which data type does the rangevalidator control support?
Explain how cookies work. Give an example of cookie abuse.
Define WCF ABC , Diffrent Contract. Diff b/w Wcf and in webservice
Define viewstate in .net?
what is the MSIL assembler do?
How do you trap errors in ASP and how do you invoke a component in ASP ?
What is mvc in asp.net tutorial? : Asp.Net MVC
What is the main use of Response.Output.Write()?
When cookie will expire?
What is difference between Lambda Expression and LINQ in ASP.NET?
what are the levels of securities need to be considered for the finincial web application?
What is difference between session and cookie?