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

i making a project using windows application c#, i want to show user name, password, and one button login. i wanna make it with sealed class .how its possible . when i clicked my login button all project should be open. pls cleare me.

1 Answers  


Which is the best method to get two values from the database?

0 Answers  


Which method in OLEDBAdapter is used to populate dataset with records?

0 Answers  


What is the DataTableCollection?

0 Answers  


How can we perform transactions in .net?

0 Answers  






how do u connect ado.net to sql server

1 Answers   Microsystems,


What is an example of ordinal data?

0 Answers  


What are the data access namespaces in .NET?

0 Answers  


i want 2 pass values(enterd in textbox)to table in sql server without using stored procedure in c#.plz tell me code with an example.

5 Answers   Softcon, Tecra,


Being fresher How would i answer to the question that what is your salary exception?

4 Answers  


What is the difference between sqldatareader and sqldataadapter?

0 Answers  


How do you sort the data in datagrid?

4 Answers   Choice Solutions,


Categories