Answer Posted / ashwini
When arguments are passed to a method ByVal i.e. By Value
then the original value of a variable is not passed but its
copy is created and that copy is passed. So whatever
changes are made, they will affect the copy but not the
original value of a variable.
When arguments are passed ByRef i.e. By Reference
then the argument's memory location is passed to a method.
So changes made to that argument's value will actually
affect the original value.
| Is This Answer Correct ? | 31 Yes | 1 No |
Post New Answer View All Answers
What is view model in c#?
What is the difference between C# 3.5 and C# 4.0?
Which of these statements correctly declares a two-dimensional array in c#?
What is use of FormBoarderStyle Propertie
Explain About disco and uddi
Can a struct have a default constructor (a constructor without parameters) or a destructor in c#?
What is private static in c#?
Which one is trusted and which one is untrusted?
What are sessions in c#?
In .NET which is the smallest unit of execution?
What are Types of assemblies that can be created in dotnet
What is the difference while using directive vs using statement ?
How does one compare strings in c#?
What are the namespace level elements?
You are creating a custom usercontrol, some of the newly created properties are shown in the properties window. How you can hide a new property named theme from the properties window?