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 |
What does datareader object do?
ADO and ADO.NET differences ?
How many commands does the oledbcommand takes?what are they?
What is the difference between executenonquery () and executescalar ()?
Which database is the ado.net sql connection object designed for?
What is datasource in ado.net?
What is oledb driver?
What is dao and ado?
What is sqldatareader?
How would you connect to a database by using .NET?
what is different between SqlCommand object and Command Behaviour Object
What is Dataset Object?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)