+ 1
C# - Defining Variables
I am confused with these two words "string" and "String". I always thought defining a string variable would look like this: string a = "hello"; but recently, I found you can also write it like this: String a = "hello"; with a capital "S". Is there any differences between the two words like whether one has a specific functionality or anything?
2 Answers
+ 2
Basically no difference. But see this article.
https://programmingwithmosh.com/csharp/difference-between-string-and-string-in-c/
0
No