Quantcast
Channel: What is the difference between String and string in C#? - Stack Overflow
Viewing all articles
Browse latest Browse all 69

Answer by Nima Habibollahi for What is the difference between String and string in C#?

$
0
0

Technically there is no difference, but there are these minor differences:

  • Language vs framework: string is alias built in data-type and alias keywords but String is alias part of class library: System.string.string doesn`t need to import even the namespace (using System;)
  • Syntax highlighting: In some editors, the keywords are highlighted with different color
  • Clean code: Its is recommended to Start types by capital letters.

Viewing all articles
Browse latest Browse all 69

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>