---
title: "What is Reference Type in C# ?"  
description: "What is Reference Type in C# ?"  
author: "Anonymous User"  
published: 2018-04-20  
updated: 2020-09-21  
canonical: https://www.mindstick.com/interview/23386/what-is-reference-type-in-c-sharp  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# What is Reference Type in C# ?

lets take an example to understand

```
Employee emp1;
Employee emp2 = new Employee();
emp1 = emp2;
```

In above example emp2 has an object instance of Employee Class. we can see that emp1 object is set as emp2. this means that the object emp2 is referred in emp1, rather than copying emp2 instance into emp1. When we make a change in emp2 object, corresponding changes can be seen in emp1 object.

## Answers

### Answer by Anonymous User

lets take an example to understand

```
Employee emp1;
Employee emp2 = new Employee();
emp1 = emp2;
```

In above example emp2 has an object instance of Employee Class. we can see that emp1 object is set as emp2. this means that the object emp2 is referred in emp1, rather than copying emp2 instance into emp1. When we make a change in emp2 object, corresponding changes can be seen in emp1 object.


---

Original Source: https://www.mindstick.com/interview/23386/what-is-reference-type-in-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
