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

Why do we need asp.net?

988


How asp.net mvc differs from asp.net web forms? : asp.net mvc

1035


Give 2 examples for scenarios when routing is not applied?

1007


How you will manage the state of ASP.NET controls?

1024


Explain about Automatic resource management?

1017


What is inproc mode in session?

894


Explain about consistent programming model in the .NET framework?

1038


What is http response header?

1075


is there any third party tools are using in .net technologies? what are there ? give me the brief introduction?

2383


What are the best practices to follow to secure connection strings in an ASP.NET web application?

1024


Explain swagger components.

944


What is data cache in sql server?

1063


Why web api is better than wcf?

1059


What is meant by ispostback in asp net?

1027


What is the difference between debug and release?

1035