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

Which protocol is used to call a web service?

1050


Explain the advantages of caching?

992


How do sessions work?

938


How is my content secured from unauthorized access?

964


Is asp.net 64-bit enabled? How?

1052


What is css and what is it used for?

1001


When we use cookie less session? Explain its working?

1024


How Session use Cookies in State Management?

1065


Explain code snippet to register exception filters from controller?

1016


What’s the difference between response .redirect and server.transfer?

998


What is the use of session?

930


To bind columns manually which tags do you need to add within the asp:datagrid ?

965


i want to implement grid view value in paypal site. so how to create this code in asp.net with C#

1857


Asp pages that worked pefectly on windows 2000 server and iis 5.0 do not work on windows 2003 server with iis 6.0. Asp.net pages work fine. Why?

981


What's the ASP.Net Application life cycle?

1103