---
title: "Ref and Out Keyword in C#"  
description: "Ref and Out Keyword in C#"  
author: "Manish Kumar"  
published: 2018-05-29  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/23415/ref-and-out-keyword-in-c-sharp  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Ref and Out Keyword in C#

**1-**Out and Ref helps to pass BY reference

**2-**Ref is two way from the caller to callee and back

**3-**Out is one way it sends data back from the callee to the caller and any data from the caller is discarded.

## Answers

### Answer by Manish Kumar

**1-**Out and Ref helps to pass BY reference

**2-**Ref is two way from the caller to callee and back

**3-**Out is one way it sends data back from the callee to the caller and any data from the caller is discarded.


---

Original Source: https://www.mindstick.com/interview/23415/ref-and-out-keyword-in-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
