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

To display data in the combo box, prior to setting the Data Source, what kind of property on a Combo Box do you set with a column name?

1094


Explain managed code an un-managed code.

1082


Can we use MSSql as backend in asp.net...if yes then How.?

1087


To load your generated dataset with data which method do you invoke?

1181


What is the difference between mechine.config and web.config?

1270


Mention the execution process for managed code?

1050


What language does asp.net use?

1049


What are custom controls?

992


What tags do you need to add within the asp:datagrid tags to bind columns manually? Give an example.

1084


Explain the concept of MVC Scaffolding?

1067


How you will handle session when deploying application in more than a server?

1150


What are the properties of the eventargs argument when capturing keyboard events?

1125


Can a .net web application consume java web service?

1021


Explain server control extensibility with reference to asp.net 2.0 ?

1037


What is the difference between the asp and asp.net?

1039