[Solved] Class instantation and method in same instruction? [closed]


Yes, possible, although I am not sure why you need to do it (it is not recommended).

new MyClass().CallMethod();

1

solved Class instantation and method in same instruction? [closed]