Explain the difference between proc. Sent by val and by sub?
Answer / Naresh Pal Singh
In C#, procedures can be sent to methods using two ways: 'by value' and 'by reference (or ref)'.n'By Value': When a procedure is called with the value type arguments, it gets copied into the method call stack. Any change made inside the method does not affect the original variable outside the method. This behavior is known as passing by value.n'By Reference': When a procedure is called with the reference type arguments (like object, class), it doesn't get copied to the method call stack; instead, the memory address of the variable is passed to the method. Any change made inside the method affects the original variable outside the method. This behavior is known as passing by reference.
| Is This Answer Correct ? | 0 Yes | 0 No |
what is ment by Unboxing?
Define a manifest in .net?
Is stringbuilder better than string?
Which is faster list or dictionary in c#?
Why do we use constructors in c#?
What do you know about device context?
What is type system in c#?
What are accessors?
What are Uses of CLR
can you allow a class to be inherited, but prevent the method from being over-ridden?
Why do we use interfaces in c#?
What is a Assembly?
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)