What is reference by value how does it works in .net?

Answers were Sorted based on User's Feedback



What is reference by value how does it works in .net?..

Answer / khalid

Referance type variables is stored in heap.
Value type variables is stored in stack.
when you declare a var as reference and change the value of
var it will be reflected across

Is This Answer Correct ?    2 Yes 1 No

What is reference by value how does it works in .net?..

Answer / manasachowdary

Reference types is like , an object is created in memory,
and then handled through a separate reference like a pointer

when you declare a var as reference and change the value of
var it will be reflected across .. where as if you declare
a var as valu .. only that particular instance value is
changes..
Here we cant store the memory directly.

Referance type memory stored in heap....heap memory can be
clear at runtime

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More ADO.NET Interview Questions

Differnce between Stored procedure and user defined functions?

17 Answers   Microsoft, Symphony,


Which provider is used to connect ms access, oracle, etc…?

0 Answers  


Can you explain how to enable and disable connection pooling?

0 Answers  


How can we perform transactions in .net?

0 Answers  


Does dapper use ado.net?

0 Answers  






How many commands does the oledbcommand takes?what are they?

2 Answers  


What is the difference between ado.net and entity framework?

0 Answers  


how to create a quiz software using 4 options to answer and how to check with answers in the database and award marks....

1 Answers   Ford,


What is the usage of the dataset object in ado.net?

0 Answers  


What is a dataview?

0 Answers  


How to fetch the last inserted record in a particular table?

10 Answers   CarrizalSoft Technologies, Microsoft,


About ADO and its objects ?

1 Answers   DELL,


Categories