Partial implementation of the C# alternative