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

Explain the architecture of ado.net?

0 Answers  


What is dao and ado?

0 Answers  


Explain the various objects in dataset.

0 Answers  


what are the two key events for the sql connection class? explain the differnce between the two.

2 Answers   HCL, NIIT, Zensar,


What is dataset and datatable in ado.net?

0 Answers  






What are the Different layers in ADO.Net?

10 Answers   eXensys,


What is read only and forward only in ado.net?

0 Answers  


How to sort the data in Datatable

2 Answers   NetProphet,


We all know that Dataset is purely disconnected architechure, but we also know that we can update the changes made to the dataset can be updated in the backend database. when there is no connection how does the update happedn?

6 Answers   Accenture, FastStream,


What is the difference between oledbreader and datasetwhile connecting?

1 Answers  


How to bind the controls(best practice) comboboxes to the data in the dataset?

0 Answers  


What are the major difference between classic ADO and ADO.NET?

0 Answers  


Categories