What is the difference between ref and out in c#?
Answer / Ram Saheli
ref is a pass-by-reference parameter, meaning it references the original variable passed as an argument. out is also a pass-by-reference parameter, but unlike ref, it must be assigned before it's used and it can only appear as a return value or in method declarations.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a static class in c#?
What do you mean by a windows process in regards to memory allocation?
What is the difference between proc. Sent by val and by sub?
can you allow a class to be inherited, but prevent the method from being over-ridden?
What is float in unity?
List down the differences between public, static and void keywords?
Give some examples for built in datatypes in c#?
What is returned if you pass the value 12.34 to the parsefloat () function?
What are properties in C#?
Define strong name in c#?
What is serialization in dot net?
f i give input like 1,1,4,5,6,1,2,5,4,1,2, then output should be like : 1-4, 2-2, 4-2, 5-1, 6-1 which means 1 occurs 4 times, 2 occurs 2 times like so.
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)