implement the Promise any/all in C# version