exercism / exercism/csharp

FIX: C# 9 new feature (Top-level statements) invalidate Basics (needs to be updated)

Đang mở
#1,974 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C#
Star
427
Fork
383
Merge trung bình
2 ngày 2 giờ
Pull request đã merge (30 ngày)
5

Mô tả

Hey there,
Hope you be ok.

Starting in C# 9, there's no need to explicitly include a Main method in a console application project. Instead, we can use the top-level statements feature to minimize the code we have to write. In this case, the compiler generates a class and Main method entry point for the application.

Here's a Program.cs file that is a complete C# program in C# 10:

```csharp
Console.WriteLine("Hello World!");
```
The `Basics` concept file includes the statement _“C# is an object-oriented language and requires all functions to be defined in a class”_ which is not %100 true anymore. I recommend updating this file to include a hint for the new feature of the language so there be no mistakes in the text.

~ _Thank you for the great C# track, I'll be happy to fix this issue if that's needed._

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.