What is the difference between String and string in CSharp? DotNet Interview Question 37 of 100:

Опубликовано: 15 Октябрь 2024
на канале: Tech Interview Questions
62
3

DotNet Interview Question 37 of 100:
What is the difference between String and string in CSharp?

Answer: In CSharp, "String" represents a class in the dotNet framework in the System namespace. However, "string" is an alias in the CSharp language for System.String. Therefore, "string" and "String" are equivalent, and you can use whichever naming convention you prefer.