What are the differences between value and reference types

Tuesday, July 7, 2009

























Sno


Value Types



Reference Types



They contain their data directly

They store a reference to their value’s memory

2

They are allocated for storage either in stack or inline in structure..

They are allocated for storage in heap

3

can be built-in (implemented by the runtime), user-defined, or enumerations

self-describing types, pointer types, or interface types.


0 comments

Post a Comment

www.codecollege.NET

Blog Widget by LinkWithin