Thanks to the File-based apps feature added in .NET 10, we can now run a .cs file directly!
Beginner Hint 1: Implicit using directives feature in C#
- The Implicit using directives feature was added in .NET 6. By default, several namespaces are automatically
globally using. - Therefore,
using System;can be omitted inchal.cs. Please be careful when investigating various APIs.
Beginner Hint 2: How to handle the Brotli compression format
- There are various ways to handle the Brotli compression format, such as using .NET (similar to
chal.cs) or JavaScript. In JavaScript, we can use thezlibmodule in Node.js, or theDecompressionStreaminterface in certain browsers. If you are unsure how to decompress Brotli-compressed data, you might want to try these languages.