What is value type and reference type?
Answers were Sorted based on User's Feedback
Answer / usman
In simple words value types are those datatypes that store
there values on stack memory and values are settle down at
compile time example are "ENUM" and reference type are
those datatype that store there values in heap memory and
settle down while run time i.e dynamic types examples are
strings,class type etc
Cheers
| Is This Answer Correct ? | 10 Yes | 1 No |
Value types are the variables that directly contain the
vaiue and are stored in stack memry.
Example: int, char, float...
Reference types does not contain the value directly but has
the address of the value i.e reference address..
Reference types are stored in Heap memory.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / sushma
value types store values,even if we copy that the orginal
one it is uneffected,even if we modify the copied one ,
the reference types stores refereneces of the object, if
copy that one ,it is effected,if we modify the copied one
| Is This Answer Correct ? | 0 Yes | 0 No |
Why do we need a finally block in try catch block while handling exceptions
What are Namespaces?
What is the benefit of using interface in c#?
What is gac? What are the steps to create an assembly and add it to the gac?
If multiple interfaces are inherited and they have conflicting method names; What will happen ?
What tool we have to use to install assembli in gac folder.
Why is it not a good idea to use empty destructors?
Can you inherit from a sealed class?
Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use?
Can private virtual methods be overridden in c#.net?
what are advantages and disadvantages of Microsoft-provided data provider classes in ADO.NET?
Define MSIL, and how does it works? Why our developers need an appreciation of it if at all?
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)