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 how to find the given query is optimised one or not?

519


What are the 3 major types of connection objects in ado.net?

553


can we create synonymn in ms access,sql server,my sql if so explain me with example

1589


What are the steps you will take to improve performance?

473


How to perform sorting on a table in ADO.NET?

565






What is the difference between sqlcommand and sqldataadapter?

510


Is it possible to load multiple tables in a Dataset?

540


What is openquery?

535


What is oledb connection?

518


How do you update database through dataset?

548


What are the advantages of using datalist?

519


Is entity framework better than ado.net?

495


How do you implement locking concept for dataset?

549


What are the Data providers in ADO.Net?

563


Can we connect two dataadapters to same data source using single connection at same time?

537