Hacker News new | ask | show | jobs
by ygra 801 days ago
You can probably shorten it to

    column[1..]
and it compiles down to a Substring call, and ranges are part of C# 8, so they exist since .NET Core 3.1. But even if the syntax is newer (e.g. collection expressions in C# 12) you can often also use features on older target frameworks if they don't require additional runtime support (and even that can often be retrofitted internally).
1 comments

That's different. It includes the last character.