What is Reference type in c#? Explain.


Reference types stores the address of the memory location and points the memory location.

Lets take a real life example to understand the reference types, We can think the reference type as the business card. A business card stores basic information and contact details of a bussiness man, i.e it is as a reference to that person. When we need to contact to him then we can refer the business card.

Reference Type

Similary reference types stores the reference of a some memory location. So when we need to access the value stored in that memory location then we can refer that using reference type.


Share this thread


comments powered by Disqus


Social Media