Recently I have heard a lot that string and String in C# are different so I wanted to make this post to say:
There is no functional difference between string and String. They both refer to the same type: System.String.
stringis a C# keyword (alias forSystem.String).Stringis the actual .NET type (System.String).
This same principle applies to other built-in types:
int(alias forSystem.Int32)long(alias forSystem.Int64)double(alias forSystem.Double)bool(alias forSystem.Boolean)object(alias forSystem.Object)
See you next week 🙂
Affiliate promo
If you love learning new stuff and want to support me, consider buying a course from Dometrain using this link: Browse courses – Dometrain. Thank you!
Leave a comment