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 |
Explain the asp.net mvc folder conventions? : asp.net mvc
In how many ways we can retrieve table records count?
what if we delete web.config or machine.config? will a website work if we delete webconfig....or if we delete machine config?
What are Themes? What is their use ?
What is new asp.net core?
how we deploy the asp.net 2.0 application
What r Callbacks in ASP.NET?
Suppose you display a data having 200 records in a datagrid. Then you edit 100 records of them. Now when you will press update button,all 100 records should be updated in single shot rather than reading every record and updating. How to do it?
Which institute provide good Project training on .Net technologies in hyd?
Define web services in asp.net.
What is microsoft windows sharepoint services?
What are typed datasets?