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

What is difference cookie and session?

992


How does windows service lifecycle differ from a .standard. Exe?

1045


How can you debug your.net application?

1020


Using code explain Configuration Management

1998


What is base class of .net?

980


Can a .net web application consume java web service?

971


Define web services in asp.net.

1072


What is distributed system in asp.net?

1040


What is the use of express session?

991


What is the procedure to create the environment for asp.net? : asp.net mvc

1055


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.

1919


How we implement the multiple paypal value with gridview in my website and how we make a payment through Credit Card.

1937


Give an example of what might be best suited to place in the application_start and session_start subroutines?

972


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?

2349


Differentiate the session object and application object?

950