System.String Type in C#

Viewed 895

I know that it may sound like a weird question but this has been going on in my mind for a while.

I know that the System.String type in C# is actually a class with a constructor that has a character array parameter. For example the following code is legal and causes no error:

System.String s = new System.String("Hello".toCharArray());

My question is that what makes is possible for the System.String class to accept an array of characters simply this way:

System.String s = "Hello";
3 Answers
Related