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 / 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 |
Explain the role of global.asax?
Explain difference betn dataset and recordset?
what is the auto option in XML ?
What are three ways that you can use a compare validator?
there is two functions function a and function b like fun a(){.... ..... } fun b() { } in function b i write the coding to add two numbers and i need to dispaly the sum result in function a with out using global variable. how we do?
what are Httpmodule and HttpHandler?
About CLS and CTS ?
Which template must you provide, in order to display data in a Repeater control?
3 Answers Siebel Systems, Wipro,
Explain the difference between debug.write and trace.write?
How can I create master page in asp net?
what is asp and asp.net ?
2 Answers Inspira Technologies,
Differentiate between globalization and localization.
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)