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

What is difference between ado.net and asp net?

0 Answers  


How do you implement locking concept for dataset?

0 Answers  


Being fresher How would i answer to the question that what is your salary exception?

4 Answers  


What is sql command in ado net?

0 Answers  


Which is faster dataset or datareader?

0 Answers  


What is the difference between connected and disconnected environment?

0 Answers  


What is the functionality of data provider in ado.net?

0 Answers  


Why is it important to close an ado.net application?

0 Answers  


How do you find the count of records in a dataset?

0 Answers  


What is the difference between a datareader and a dataset?

0 Answers  


What are the ado.net components?

0 Answers  


Differnce between Stored procedure and user defined functions?

17 Answers   Microsoft, Symphony,


Categories