Ad
  • Custom User Avatar

    thanks for taking the time to reply!

  • Default User Avatar

    Essentially, there is no difference between string and String (capital S) in C#.

    String (capital S) is a class in the .NET framework in the System namespace. The fully qualified name is System.String. Whereas, the lower case string is an alias of System.String.

    Many developers use string to declare variables in C# and use System.String class to use any built-in string methods e.g., String.IsNullOrEmpty().

  • Custom User Avatar

    Should string be lowercase in the string.Join section? I understand it's being used as a method but it's from System. By convention, primitive data types like int, double, bool, and string are written in lowercase. This consistent casing helps distinguish them from user-defined classes. Is there an exception here?

  • Custom User Avatar

    I didn't think it was that simple