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
What is difference cookie and session?
How does windows service lifecycle differ from a .standard. Exe?
How can you debug your.net application?
Using code explain Configuration Management
What is base class of .net?
Can a .net web application consume java web service?
Define web services in asp.net.
What is distributed system in asp.net?
What is the use of express session?
What is the procedure to create the environment for asp.net? : asp.net mvc
How can we secure the data which is send from client side to server? Like the login id and paasword needs to be authenticated on the server but we cannot send it in plain text into the server.One more thing we are not using the SSL here.
How we implement the multiple paypal value with gridview in my website and how we make a payment through Credit Card.
Give an example of what might be best suited to place in the application_start and session_start subroutines?
i have 3+ exp in .net? i am going interview now but they asked me do you know any TOOL? which tool will i study please refer me?
Differentiate the session object and application object?