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 ODP.net

571


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

546


What is sqldatareader?

487


Does entity framework use ado.net?

505


What is Serialization in .NET? what are the types of Serialization?

553






What is the difference between Optimistic and Pessimistic locking?

544


What is the difference between dataset and datatable?

485


Describe briefly an ADO.NET Dataset ?

551


Which object of ado contains datarow datacolumn collection?

512


What are the usages of the command object in ado.net?

552


What is aggregating data ?

511


What is data view and variable view?

483


What is an orm, and why would you use one instead of plain old ado.net?

572


What are the rules to implement connection pooling?

508


Define the data provider classes that is supported by ado.net?

515