What is reference by value how does it works in .net?
Answers were Sorted based on User's Feedback
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 |
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 |
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.
Which is the best method to get two values from the database?
Which method in OLEDBAdapter is used to populate dataset with records?
What is the DataTableCollection?
How can we perform transactions in .net?
how do u connect ado.net to sql server
What is an example of ordinal data?
What are the data access namespaces in .NET?
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.
Being fresher How would i answer to the question that what is your salary exception?
What is the difference between sqldatareader and sqldataadapter?
How do you sort the data in datagrid?