Difference between ByVal and ByRef?

Answers were Sorted based on User's Feedback



Difference between ByVal and ByRef?..

Answer / ashok

whenver a data type is derived from a structure then it s
said to be value type


EX:int,uint,short



where a data type is dervied from class definition then it
is said to be reference type

EX:object,string,delegate,interface

Is This Answer Correct ?    5 Yes 0 No

Difference between ByVal and ByRef?..

Answer / hemali

ByVal is use to pass the value..
& ByRef is use to pass the reference of variable.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

can we store textbox and com components in viewstate?

4 Answers   Microsoft,


Why select Web API?

0 Answers  


how to elimainte the similar data from the different tables

0 Answers  


What is full form of asp.net?

0 Answers  


What parameters can you pass in the url of the api? Can get and post use the same url?

0 Answers  






What are server activated objects?

0 Answers  


Define cookie.

0 Answers  


Explain ViewState?

0 Answers   QuestPond,


what is Disco?what it will do?

2 Answers   Microsoft,


What are the difference between overriding and overloading?

0 Answers  


What are sessions in asp net?

0 Answers  


Explain asp.net application life cycle?

0 Answers  


Categories