---
title: "What's the difference between String and string?"  
description: "What's the difference between String and string?"  
author: "Anonymous User"  
published: 2013-05-29  
updated: 2013-05-29  
canonical: https://www.mindstick.com/forum/932/what-s-the-difference-between-string-and-string  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# What's the difference between String and string?

Hi MindStickians,\
In C#, what is the [difference between String](https://www.mindstick.com/forum/85/difference-between-string-and-string-builder) and string? (note the case)\
Example:\
string s = "Hello, [World](https://yourviews.mindstick.com/view/87468/defining-humanity-as-given-in-sanatan-dharma-best-in-world)";String S = "Hello, World";\
Also, what are the [guidelines](https://www.mindstick.com/blog/245/software-requirements-and-guidelines-for-developing-android-application) for the use of each?Your help is a great appreciated.

## Replies

### Reply by AVADHESH PATEL

Hi Tanuj!\
[string](https://www.mindstick.com/articles/1527/string-split-in-c-sharp) is an alias for System.String. So technically, there is no [difference](https://www.mindstick.com/articles/157114/good-news-or-bad-news-and-the-difference-is). It's like int vs. System.Int32.\
As far as guidelines, I think it's generally recommended to use string any time you're referring to an object. e.g.\
string place = "world";Likewise, I think it's generally recommended to use String if you need to refer specifically to the class. e.g.\
string greet = String.Format("Hello {0}!", place);


---

Original Source: https://www.mindstick.com/forum/932/what-s-the-difference-between-string-and-string

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
