# C# 字符串类型 以下使用 C# 字符串类型的语句,哪些都是对的? 一: ```csharp Console.WriteLine("Hello, World!"); ``` 二: ```csharp string helloworld1 = "Hello, World!"; Console.WriteLine(helloworld1); ``` 三: ```csharp String helloworld2 = "Hello, World!"; Console.WriteLine(helloworld2); ``` 四: ```csharp var helloworld3 = "Hello, World!"; Console.WriteLine(helloworld3); ``` 五: ```csharp string $helloworld4 = "Hello, World!"; Console.WriteLine($helloworld3); ``` 六: ```csharp string helloworld5 = 'Hello, World!'; Console.WriteLine($helloworld5); ``` 七: ```csharp var helloworld6; helloworld6 = "Hello, World!"; Console.WriteLine(helloworld6); ``` ## 答案 ```csharp 一、二、三、四 ``` ## 选项 ### A ```csahrp 一、二、三、五 ``` ### B ```csharp 一、二、四、六 ``` ### C ```csharp 一、三、四、七 ``` ### D ```csharp 三、四、五、七 ``` ### E ```csharp 二、四、五、六 ```