Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Define web services in asp.net.

1064


Explain form level validation and field level validation?

1015


Explain about asp.net state management?

1031


What is the use of view state?

947


What are ASHX files?

1101


How do I use a proxy server when invoking a web service?

993


What are the benefits of view state?

946


What is a swagger in web api?

1058


What is connection pooling and how to enable and disable connection pooling?

1021


How many validators do ASP.NET have?

1094


What are different methods of session maintenance in asp.net?

1063


What is asp.net web application?

1046


What is the difference between equals() and == in c#?

1019


What is the viewstate in asp.net?

1041


Explain About duration in caching technique

1063