Skip to main content

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

Published 1 min readMarkdown
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.

About the author

No comments yet. Be the first to comment.

More from this blog