What is the difference between ref and out parameters in c#?
Answer / Robin Singh
ref parameters allow passing variables to methods by reference, meaning that any changes made inside the method are reflected outside the method as well. On the other hand, out parameters are similar but require initializing them before use and can be used with return values.
| Is This Answer Correct ? | 0 Yes | 0 No |
what is the difference between interface and multiple interface?
How many types of inheritance are there in c#?
Explain the term inheritance in C#.
1 Answers Deloitte, JPMorgan Chase,
What are the benefits of using generics?
why C++ Partial Object Oriented Programming Language and C# and Java Fully Object Oriented Language
11 Answers 3i Infotech, Alexa, Assyst, Naresh i Technologies, TCS,
What is data set in c#?
what are the Disadvantages of vb
How to use exception handling in stored procedure?
Can multiple catch blocks be executed?
Why array is faster than arraylist in c#?
Is comparator a functional interface?
Is and as keyword in c# net?
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)