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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain executenonquery?

805


What are all features of ADO.Net?

742


Explain the advantage of ADO.Net?

746


Which database is the ado.net sql connection object designed for?

818


Which architecture does Datasets follow?

797


Is it possible to load multiple tables in a Dataset?

752


What is an ado connection?

718


What are all components of ADO.Net data provider?

803


Which object of ado contains datarow datacolumn collection?

706


Why ca not we use multiple inheritance and garbage collector paralelly in .net?

771


What is ado.net components?

688


What is csdl entity framework?

763


What is difference between ado.net and asp net?

751


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

761


What is the maximum pool size in ado.net connection string?

703