---
title: "What is the difference between Read-only and Const keyword?"  
description: "What is the difference between Read-only and Const keyword?"  
author: "Om ji mishra"  
published: 2019-10-14  
updated: 2019-10-14  
canonical: https://www.mindstick.com/forum/105419/what-is-the-difference-between-read-only-and-const-keyword  
category: "c#"  
tags: ["c#", "programming language"]  
reading_time: 1 minute  

---

# What is the difference between Read-only and Const keyword?

What is the [difference](https://www.mindstick.com/articles/157114/good-news-or-bad-news-and-the-difference-is) between Read-only and [Const](https://www.mindstick.com/interview/1876/what-are-the-difference-between-const-and-readonly) [keyword](https://www.mindstick.com/forum/33572/sql-inner-join-keyword)?

## Replies

### Reply by Om ji mishra

| **Read-Only** \ | **Const** |
| --- | --- |
| **1.** Read-Only is a runtime constant. | Const is a compile-time constant. |
| **2.** The value of read-only can be changed. | The value of const field cannot be changed |
| **3.** It can't be declared inside the method. | It can be declared inside the |
| **4.** Read-only can be used static modifiers. | Const can not be used with static modifiers. |


---

Original Source: https://www.mindstick.com/forum/105419/what-is-the-difference-between-read-only-and-const-keyword

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
