What is the difference between System.String and string in C#?

Photo by Clay Banks on Unsplash

What is the difference between System.String and string in C#?

Basically, there is no difference between string and String in C#. "string" is just an alias of System.String and both are compiled in the same manner. String stands for System.String and it is a .NET Framework type. "string" is an alias in the C# language for System.String. Both of them are compiled to System.String in IL (Intermediate Language), so there is no difference.