Using System.Threading.Tasks.Task.WaitAll() I could see the available parameters I should be using with this method
Can be seen here but when writing in visual studio, I was able to call the method with no parameters at all:
Task.WaitAll();
and it didn’t show up as a syntax error in the IDE (for missing parameters),
can you please explain why is this possible with this specific method?
The full definition of this method is
The word
paramsindicates that the method accepts a variable number of arguments. 0 arguments is also explicitly allowed.Needless to say the method has no effect when called this way.