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

What is data adapter in ado.net with example?

723


What is a control toolbox?

714


What is difference between sqldatareader and sqldataadapter?

724


How to aggregating data across related tables?

789


List all the steps in order, to access a database through ado.net?

835


How to load multiple tables into a dataset?

759


What is the DataTableCollection?

821


What are the different ado.net namespaces?

854


How do I delete a row from a DataTable?

802


What is Data Provider?

820


What does executereader return?

744


What are datareaders?

703


What do you know about ado.net's methods?

813


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

718


Which is the feature of ado.net?

765