C# class named “end”
11 Aug 2023
1 mins
C#
I was today’s years old when I realized I can create class named end in C#.
It makes sense. The end is not a reserved word.
using System;
Console.WriteLine(new end());
class end { }
Now I’m wondering what kind of fun I could make with it… 😉 And yes, it’s absolutely dumb to have a class with such a name.
Jiří Činčura is a .NET, C# and Firebird expert. He focuses on data and business layers, language constructs, parallelism, databases and performance. For almost two decades he has been contributing to open-source, e.g. FirebirdClient. He works as a senior software engineer for Microsoft. Frequent speaker and blogger at www.tabsoverspaces.com.